/* ========================================
   Theme14 - Editorial Design
   Magazine-style with bold typography
   ======================================== */

/* 1. CSS Custom Properties */
:root {
    --t14-primary: #DC2626;
    --t14-primary-light: #EF4444;
    --t14-primary-dark: #B91C1C;
    --t14-secondary: #1E3A5F;
    --t14-accent: #F59E0B;
    --t14-text: #111827;
    --t14-text-secondary: #4B5563;
    --t14-text-light: #9CA3AF;
    --t14-text-inverse: #FFFFFF;
    --t14-bg: #FFFFFF;
    --t14-bg-alt: #F9FAFB;
    --t14-bg-dark: #111827;
    --t14-border: #E5E7EB;
    --t14-border-dark: #111827;
    --t14-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --t14-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --t14-radius: 0;
    --t14-radius-sm: 0;
    --t14-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --t14-font-serif: Georgia, "Times New Roman", "SimSun", serif;
    --t14-header-h: 80px;
}

/* 2. Reset / Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    font-family: var(--t14-font-sans);
    color: var(--t14-text);
    background: var(--t14-bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--t14-text);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--t14-primary);
}
ul, ol {
    list-style: none;
}
table {
    border-collapse: collapse;
    width: 100%;
}

/* 3. Typography - Editorial Style */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--t14-font-serif);
    color: var(--t14-text);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: 3rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4 { font-size: 1.25rem; margin-bottom: 12px; }
p {
    color: var(--t14-text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1.05rem;
}
b, strong {
    font-weight: 700;
    color: var(--t14-text);
}

/* 4. Layout */
.t14-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.t14-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 5. Header - Newspaper Masthead */
.t14-header {
    background: var(--t14-bg);
    border-bottom: 3px solid var(--t14-border-dark);
    height: var(--t14-header-h);
}
.t14-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.t14-logo {
    font-family: var(--t14-font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--t14-text);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.t14-logo:hover {
    color: var(--t14-primary);
}

/* 6. Navigation - Underline Style */
.t14-nav {
    display: flex;
    gap: 32px;
}
.t14-nav ul {
    display: contents;
}
.t14-nav li {
    list-style: none;
}
.t14-nav a {
    padding: 8px 0;
    color: var(--t14-text);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}
.t14-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--t14-primary);
    transition: width 0.25s ease;
}
.t14-nav a:hover::after,
.t14-nav a.active::after {
    width: 100%;
}
.t14-nav a.active {
    color: var(--t14-primary);
}

/* 7. Mobile Menu Toggle */
.t14-menu-toggle {
    display: none;
}
.t14-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--t14-border-dark);
    cursor: pointer;
    position: relative;
    z-index: 1001;
}
.t14-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--t14-text);
    margin: 4px auto;
    transition: all 0.3s ease;
}

/* 8. Main Section */
.t14-section {
    padding: 60px 0;
    flex: 1;
}

/* 9. Hero / Banner - Magazine Cover */
.t14-hero {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--t14-border);
    padding-bottom: 60px;
}
.t14-hero-single {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}
.t14-hero-single::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 70%);
}
.t14-hero-single a {
    position: relative;
    z-index: 1;
    color: var(--t14-text-inverse);
    font-family: var(--t14-font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    padding: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 70%;
}
.t14-hero-single a:hover {
    color: var(--t14-accent);
}
.t14-hero-grid {
    display: grid;
    gap: 24px;
}
.t14-hero-grid.row-1 { grid-template-columns: 1fr; }
.t14-hero-grid.row-2 { grid-template-columns: repeat(2, 1fr); }
.t14-hero-grid.row-3 { grid-template-columns: repeat(3, 1fr); }
.t14-hero-grid.row-4 { grid-template-columns: repeat(4, 1fr); }
.t14-hero-item {
    overflow: hidden;
    border-bottom: 3px solid var(--t14-border-dark);
    transition: border-color 0.25s ease;
}
.t14-hero-item:hover {
    border-color: var(--t14-primary);
}
.t14-hero-item a {
    display: block;
}
.t14-hero-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.4s ease;
}
.t14-hero-item:hover img {
    filter: grayscale(0);
}
.t14-hero-item span {
    display: block;
    padding: 16px 0;
    font-family: var(--t14-font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--t14-text);
    line-height: 1.3;
}

/* 10. Section Title - Editorial */
.t14-section-title {
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--t14-border-dark);
}
.t14-section-title h2 {
    font-family: var(--t14-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--t14-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}
.t14-section-title h2 a {
    color: inherit;
}
.t14-section-title h2 a:hover {
    color: var(--t14-primary);
}

/* 11. Module */
.t14-module {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--t14-border);
}

/* 12. Contact + Intro Module */
.t14-contact-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
}
.t14-contact-card {
    padding-right: 48px;
    border-right: 1px solid var(--t14-border);
}
.t14-intro-card {
    padding-left: 0;
}
.t14-contact-card h3,
.t14-intro-card h3 {
    font-family: var(--t14-font-serif);
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--t14-primary);
    display: inline-block;
    color: var(--t14-text);
}
.t14-contact-card p {
    margin-bottom: 12px;
    color: var(--t14-text-secondary);
    font-size: 0.95rem;
}
.t14-intro-card p {
    color: var(--t14-text-secondary);
    line-height: 2;
    font-size: 1.05rem;
    text-align: justify;
}

/* 13. Product Grid - Editorial Cards */
.t14-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.t14-product-card {
    border-bottom: 3px solid var(--t14-border-dark);
    padding-bottom: 16px;
    transition: border-color 0.25s ease;
}
.t14-product-card:hover {
    border-color: var(--t14-primary);
}
.t14-product-img {
    display: block;
    overflow: hidden;
    margin-bottom: 16px;
}
.t14-product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(30%);
    transition: all 0.4s ease;
}
.t14-product-card:hover .t14-product-img img {
    filter: grayscale(0);
    transform: scale(1.03);
}
.t14-product-body {
    padding: 0;
}
.t14-product-name {
    font-family: var(--t14-font-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}
.t14-product-name a {
    color: var(--t14-text);
}
.t14-product-name a:hover {
    color: var(--t14-primary);
}
.t14-product-time {
    font-size: 0.8rem;
    color: var(--t14-text-light);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 14. Information Module */
.t14-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}
.t14-info-card {
    padding-right: 24px;
}
.t14-info-card:first-child {
    border-right: 1px solid var(--t14-border);
}
.t14-info-card h3 {
    font-family: var(--t14-font-serif);
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--t14-primary);
    display: inline-block;
    color: var(--t14-text);
}
.t14-info-card p {
    margin-bottom: 12px;
    color: var(--t14-text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}
.t14-info-card b {
    color: var(--t14-text);
    font-weight: 700;
}

/* 15. Information Table Layout */
.t14-info-table {
    background: var(--t14-bg-alt);
    padding: 32px;
    border-left: 4px solid var(--t14-primary);
}
.t14-info-table h3 {
    font-family: var(--t14-font-serif);
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--t14-text);
}
.t14-info-table table {
    width: 100%;
}
.t14-info-table td {
    padding: 16px 0;
    border-bottom: 1px solid var(--t14-border);
    vertical-align: top;
}
.t14-info-table tr:last-child td {
    border-bottom: none;
}
.t14-info-table td:first-child {
    width: 140px;
    font-weight: 700;
    color: var(--t14-text);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.t14-info-table td:last-child {
    color: var(--t14-text-secondary);
}

/* 16. Message Form */
.t14-form-card {
    background: var(--t14-bg-alt);
    padding: 40px;
    border-left: 4px solid var(--t14-primary);
    max-width: 700px;
}
.t14-form-card h3 {
    font-family: var(--t14-font-serif);
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--t14-text);
}
.t14-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.t14-form-group {
    margin-bottom: 24px;
}
.t14-form-group.full {
    grid-column: span 2;
}
.t14-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--t14-text);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.t14-input,
.t14-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--t14-border);
    background: var(--t14-bg);
    font-size: 1rem;
    color: var(--t14-text);
    font-family: inherit;
    transition: border-color 0.25s ease;
}
.t14-input:focus,
.t14-textarea:focus {
    outline: none;
    border-color: var(--t14-border-dark);
}
.t14-textarea {
    min-height: 150px;
    resize: vertical;
}

/* 17. Button */
.t14-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--t14-border-dark);
    color: var(--t14-text-inverse);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.t14-btn:hover {
    background: var(--t14-primary);
    color: var(--t14-text-inverse);
}

/* 18. Links Section */
.t14-links {
    background: var(--t14-bg-alt);
    padding: 20px 24px;
    border-left: 4px solid var(--t14-border-dark);
    font-size: 0.9rem;
}
.t14-links span {
    font-weight: 700;
    color: var(--t14-text);
    margin-right: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.t14-links a {
    color: var(--t14-text-secondary);
    margin-right: 20px;
}
.t14-links a:hover {
    color: var(--t14-primary);
}

/* 19. Breadcrumb */
.t14-breadcrumb {
    padding: 16px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--t14-border);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.t14-breadcrumb a {
    color: var(--t14-text-secondary);
}
.t14-breadcrumb a:hover {
    color: var(--t14-primary);
}
.t14-breadcrumb .t14-sep {
    margin: 0 12px;
    color: var(--t14-text-light);
}
.t14-breadcrumb strong {
    color: var(--t14-text);
    font-weight: 700;
}

/* 20. Detail Card */
.t14-detail-card {
    max-width: 800px;
}
.t14-detail-card h1 {
    font-family: var(--t14-font-serif);
    font-size: 2.5rem;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.t14-detail-img {
    margin-bottom: 32px;
}
.t14-detail-img img {
    width: 100%;
    display: block;
}
.t14-detail-content {
    color: var(--t14-text-secondary);
    line-height: 2;
    font-size: 1.1rem;
}
.t14-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}
.t14-detail-content img {
    max-width: 100%;
    margin: 24px 0;
}
.t14-page-info {
    margin-top: 32px;
    padding: 16px 20px;
    background: var(--t14-bg-alt);
    border-left: 3px solid var(--t14-primary);
    color: var(--t14-text-light);
    font-size: 0.85rem;
}

/* 21. Pagination */
.t14-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}
.t14-pagination a,
.t14-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border: 2px solid var(--t14-border);
    color: var(--t14-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}
.t14-pagination a:hover {
    border-color: var(--t14-border-dark);
    background: var(--t14-border-dark);
    color: var(--t14-text-inverse);
}
.t14-pagination .active {
    background: var(--t14-border-dark);
    border-color: var(--t14-border-dark);
    color: var(--t14-text-inverse);
}
.t14-pagination .disabled {
    color: var(--t14-text-light);
    border-color: var(--t14-border);
    opacity: 0.5;
    cursor: not-allowed;
}

/* 22. Footer */
.t14-footer {
    background: var(--t14-bg-dark);
    padding: 48px 0;
    margin-top: auto;
}
.t14-footer-content {
    text-align: center;
}
.t14-footer-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.t14-footer-info p {
    color: var(--t14-text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}
.t14-footer-copyright {
    color: var(--t14-text-light);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}
.t14-footer-copyright a {
    color: var(--t14-text-light);
    margin: 0 8px;
}
.t14-footer-copyright a:hover {
    color: var(--t14-text-inverse);
}

/* 23. Error Page */
.t14-error {
    text-align: center;
    padding: 100px 20px;
}
.t14-error-card {
    max-width: 500px;
    margin: 0 auto;
}
.t14-error-code {
    font-family: var(--t14-font-serif);
    font-size: 8rem;
    font-weight: 700;
    color: var(--t14-text);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
}
.t14-error-card h2 {
    font-family: var(--t14-font-serif);
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--t14-text);
}
.t14-error-card p {
    color: var(--t14-text-secondary);
    margin-bottom: 32px;
}

/* 24. Sub Domain Styles */
.t14-sub-header {
    background: var(--t14-bg);
    padding: 20px 0;
    border-bottom: 3px solid var(--t14-border-dark);
}
.t14-sub-header .t14-header-inner {
    flex-wrap: wrap;
    gap: 20px;
}
.t14-sub-header .t14-logo {
    font-size: 1.4rem;
}
.t14-sub-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.t14-sub-nav a {
    padding: 8px 0;
    color: var(--t14-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}
.t14-sub-nav a:hover {
    color: var(--t14-text);
    border-color: var(--t14-primary);
}

/* 25. Responsive */
@media (max-width: 1024px) {
    .t14-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .t14-hero-grid.row-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .t14-container {
        padding: 0 16px;
    }
    .t14-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .t14-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--t14-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    .t14-menu-toggle:checked ~ .t14-nav {
        opacity: 1;
        visibility: visible;
    }
    .t14-menu-toggle:checked ~ .t14-menu-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .t14-menu-toggle:checked ~ .t14-menu-btn span:nth-child(2) {
        opacity: 0;
    }
    .t14-menu-toggle:checked ~ .t14-menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .t14-nav a {
        font-size: 1.2rem;
    }
    .t14-section {
        padding: 40px 0;
    }
    .t14-hero-single {
        height: 350px;
    }
    .t14-hero-single a {
        font-size: 1.8rem;
        max-width: 100%;
        padding: 24px;
    }
    .t14-hero-grid {
        grid-template-columns: 1fr !important;
    }
    .t14-hero-item img {
        height: 200px;
    }
    .t14-contact-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .t14-contact-card {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--t14-border);
        padding-bottom: 32px;
    }
    .t14-info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .t14-info-card:first-child {
        border-right: none;
        border-bottom: 1px solid var(--t14-border);
        padding-bottom: 32px;
        padding-right: 0;
    }
    .t14-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .t14-product-img img {
        height: 160px;
    }
    .t14-detail-card h1 {
        font-size: 1.8rem;
    }
    .t14-form-row {
        grid-template-columns: 1fr;
    }
    .t14-form-group.full {
        grid-column: span 1;
    }
    .t14-footer-info {
        flex-direction: column;
        gap: 12px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .t14-logo {
        font-size: 1.4rem;
    }
    .t14-product-grid {
        grid-template-columns: 1fr;
    }
    .t14-section-title h2 {
        font-size: 1.2rem;
    }
    .t14-pagination {
        gap: 4px;
        flex-wrap: wrap;
    }
    .t14-pagination a,
    .t14-pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.85rem;
    }
    .t14-error-code {
        font-size: 5rem;
    }
}
