/* Theme20 - Swiss International Design Style */
/* 瑞士国际主义风格：网格系统、无衬线字体、清晰排版、几何形状 */

/* ==================== CSS Variables ==================== */
:root {
    /* Primary Colors - Classic Red */
    --t20-primary: #E63946;
    --t20-primary-light: #FF6B6B;
    --t20-primary-dark: #C1121F;
    --t20-primary-soft: rgba(230, 57, 70, 0.1);

    /* Secondary Colors - Deep Black */
    --t20-secondary: #1D3557;
    --t20-secondary-light: #457B9D;
    --t20-secondary-soft: rgba(29, 53, 87, 0.1);

    /* Accent Colors - Clean Blue */
    --t20-accent: #457B9D;
    --t20-accent-light: #A8DADC;

    /* Neutral Colors */
    --t20-black: #0D0D0D;
    --t20-gray-900: #1A1A1A;
    --t20-gray-700: #404040;
    --t20-gray-500: #737373;
    --t20-gray-300: #B3B3B3;
    --t20-gray-100: #F0F0F0;
    --t20-white: #FFFFFF;

    /* Background Colors */
    --t20-bg: #FFFFFF;
    --t20-bg-alt: #F5F5F5;
    --t20-bg-card: #FFFFFF;
    --t20-bg-dark: #0D0D0D;

    /* Text Colors */
    --t20-text: #1A1A1A;
    --t20-text-secondary: #404040;
    --t20-text-light: #737373;
    --t20-text-inverse: #FFFFFF;

    /* Border Colors */
    --t20-border: #E0E0E0;
    --t20-border-dark: #1A1A1A;

    /* Effects */
    --t20-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --t20-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --t20-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);

    /* Layout - Based on 8px grid */
    --t20-space-1: 8px;
    --t20-space-2: 16px;
    --t20-space-3: 24px;
    --t20-space-4: 32px;
    --t20-space-5: 40px;
    --t20-space-6: 48px;
    --t20-space-8: 64px;

    /* Typography */
    --t20-font: 'Helvetica Neue', 'Arial', 'Segoe UI', sans-serif;
    --t20-font-display: 'Helvetica Neue', 'Arial', sans-serif;
}

/* ==================== Base Reset ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--t20-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--t20-text);
    background-color: var(--t20-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--t20-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--t20-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--t20-font-display);
    color: var(--t20-black);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--t20-space-2);
    color: var(--t20-text-secondary);
}

/* ==================== Layout ==================== */
.t20-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--t20-space-3);
}

.t20-inner {
    padding: var(--t20-space-6) 0;
}

/* Grid System */
.t20-grid {
    display: grid;
    gap: var(--t20-space-3);
}

.t20-grid-2 { grid-template-columns: repeat(2, 1fr); }
.t20-grid-3 { grid-template-columns: repeat(3, 1fr); }
.t20-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==================== Header & Navigation ==================== */
.t20-header {
    background: var(--t20-bg);
    border-bottom: 3px solid var(--t20-black);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.t20-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--t20-space-3);
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
}

.t20-logo {
    font-family: var(--t20-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--t20-black);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: var(--t20-space-2);
}

.t20-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--t20-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t20-white);
    font-weight: 800;
    font-size: 1.2rem;
}

/* Desktop Navigation */
.t20-nav {
    display: flex;
    gap: 0;
}
.t20-nav ul {
    display: contents;
}
.t20-nav li {
    list-style: none;
}

.t20-nav a {
    padding: var(--t20-space-3) var(--t20-space-3);
    color: var(--t20-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: all 0.2s ease;
}

.t20-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--t20-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.t20-nav a:hover::after,
.t20-nav a.active::after {
    transform: scaleX(1);
}

.t20-nav a:hover {
    color: var(--t20-primary);
}

.t20-nav a.active {
    color: var(--t20-primary);
}

/* Mobile Menu Toggle */
.t20-menu-toggle {
    display: none;
}

.t20-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    background: transparent;
    border: 2px solid var(--t20-black);
    padding: 12px;
}

.t20-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--t20-black);
    margin: 3px 0;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .t20-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--t20-bg);
        border-bottom: 3px solid var(--t20-black);
        padding: var(--t20-space-2) 0;
    }

    .t20-nav ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .t20-nav a {
        display: block;
        padding: var(--t20-space-2) var(--t20-space-3);
        color: var(--t20-text);
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-left: 3px solid transparent;
    }

    .t20-nav a:hover,
    .t20-nav a.active {
        color: var(--t20-primary);
        border-left-color: var(--t20-primary);
        background: var(--t20-primary-soft);
    }

    .t20-menu-btn {
        display: flex;
    }

    .t20-menu-toggle:checked ~ .t20-nav {
        display: block;
    }

    .t20-menu-toggle:checked ~ .t20-menu-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .t20-menu-toggle:checked ~ .t20-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .t20-menu-toggle:checked ~ .t20-menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ==================== Banner ==================== */
.t20-hero {
    background: var(--t20-bg-alt);
    border-bottom: 3px solid var(--t20-black);
    margin-bottom: var(--t20-space-6);
}

.t20-hero-single {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.t20-hero-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t20-hero-single::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--t20-primary);
}

.t20-hero-grid {
    display: grid;
    gap: 3px;
    background: var(--t20-black);
    padding: 3px;
}

.t20-hero-grid.row-2 { grid-template-columns: repeat(2, 1fr); }
.t20-hero-grid.row-3 { grid-template-columns: repeat(3, 1fr); }
.t20-hero-grid.row-4 { grid-template-columns: repeat(4, 1fr); }
.t20-hero-grid.row-5 { grid-template-columns: repeat(5, 1fr); }

.t20-hero-item {
    position: relative;
    overflow: hidden;
    background: var(--t20-bg);
}

.t20-hero-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.t20-hero-item:hover img {
    transform: scale(1.05);
}

.t20-hero-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--t20-space-2);
    background: var(--t20-black);
    color: var(--t20-white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .t20-hero-grid.row-4,
    .t20-hero-grid.row-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .t20-hero-item img {
        height: 160px;
    }
}

/* ==================== Section Titles ==================== */
.t20-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--t20-black);
    margin-bottom: var(--t20-space-4);
    padding-bottom: var(--t20-space-2);
    border-bottom: 3px solid var(--t20-black);
    display: flex;
    align-items: center;
    gap: var(--t20-space-2);
}

.t20-section-title::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--t20-primary);
    flex-shrink: 0;
}

/* ==================== Cards ==================== */
.t20-card {
    background: var(--t20-bg-card);
    border: 2px solid var(--t20-border);
    padding: var(--t20-space-4);
    margin-bottom: var(--t20-space-3);
    transition: all 0.2s ease;
}

.t20-card:hover {
    border-color: var(--t20-black);
    box-shadow: var(--t20-shadow);
}

.t20-card h3 {
    margin-bottom: var(--t20-space-2);
    font-size: 1.25rem;
}

/* ==================== Product Grid ==================== */
.t20-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--t20-space-3);
}

.t20-product-card {
    background: var(--t20-bg-card);
    border: 2px solid var(--t20-border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.t20-product-card:hover {
    border-color: var(--t20-black);
    box-shadow: var(--t20-shadow);
}

.t20-product-card a {
    display: block;
    text-decoration: none;
}

.t20-product-img {
    position: relative;
    overflow: hidden;
    background: var(--t20-bg-alt);
}

.t20-product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.t20-product-card:hover .t20-product-img img {
    transform: scale(1.05);
}

.t20-product-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--t20-primary);
    transition: width 0.3s ease;
}

.t20-product-card:hover .t20-product-img::after {
    width: 100%;
}

.t20-product-info {
    padding: var(--t20-space-2);
    border-top: 2px solid var(--t20-border);
}

.t20-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t20-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t20-product-card:hover .t20-product-name {
    color: var(--t20-primary);
}

.t20-product-time {
    font-size: 0.75rem;
    color: var(--t20-text-light);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .t20-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .t20-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .t20-product-img img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .t20-product-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Content Sections ==================== */
.t20-content-section {
    background: var(--t20-bg-card);
    border: 2px solid var(--t20-border);
    padding: var(--t20-space-4);
    margin-bottom: var(--t20-space-4);
}

/* ==================== Contact Info ==================== */
.t20-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--t20-space-3);
}

.t20-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--t20-space-2);
    padding: var(--t20-space-3);
    background: var(--t20-bg-alt);
    border-left: 3px solid var(--t20-primary);
    transition: all 0.2s ease;
}

.t20-contact-item:hover {
    background: var(--t20-primary-soft);
}

.t20-contact-icon {
    width: 48px;
    height: 48px;
    background: var(--t20-black);
    color: var(--t20-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.t20-contact-text h4 {
    color: var(--t20-black);
    font-size: 0.8rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.t20-contact-text p {
    color: var(--t20-text);
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .t20-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Company Info Table ==================== */
.t20-info-table {
    width: 100%;
    border-collapse: collapse;
}

.t20-info-table tr {
    border-bottom: 1px solid var(--t20-border);
}

.t20-info-table tr:hover {
    background: var(--t20-bg-alt);
}

.t20-info-table th {
    width: 140px;
    padding: var(--t20-space-2);
    text-align: left;
    color: var(--t20-black);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--t20-bg-alt);
    border-right: 3px solid var(--t20-primary);
}

.t20-info-table td {
    padding: var(--t20-space-2) var(--t20-space-3);
    color: var(--t20-text-secondary);
}

/* Two Column Layout */
.t20-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--t20-space-5);
}

.t20-two-col .t20-col h3 {
    margin-bottom: var(--t20-space-3);
    padding-bottom: var(--t20-space-2);
    border-bottom: 3px solid var(--t20-black);
}

@media (max-width: 768px) {
    .t20-two-col {
        grid-template-columns: 1fr;
    }
    .t20-info-table th {
        width: 120px;
    }
}

/* ==================== Forms ==================== */
.t20-form-card {
    background: var(--t20-bg-card);
    border: 2px solid var(--t20-border);
    padding: var(--t20-space-4);
}

.t20-form-group {
    margin-bottom: var(--t20-space-3);
}

.t20-form-group label {
    display: block;
    margin-bottom: var(--t20-space-1);
    color: var(--t20-black);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.t20-form-group input,
.t20-form-group textarea {
    width: 100%;
    padding: var(--t20-space-2);
    background: var(--t20-bg);
    border: 2px solid var(--t20-border);
    color: var(--t20-text);
    font-size: 1rem;
    font-family: var(--t20-font);
    transition: border-color 0.2s ease;
}

.t20-form-group input:focus,
.t20-form-group textarea:focus {
    outline: none;
    border-color: var(--t20-black);
}

.t20-form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.t20-form-group input::placeholder,
.t20-form-group textarea::placeholder {
    color: var(--t20-text-light);
}

/* ==================== Buttons ==================== */
.t20-btn {
    display: inline-block;
    padding: var(--t20-space-2) var(--t20-space-4);
    background: var(--t20-black);
    border: 2px solid var(--t20-black);
    color: var(--t20-white);
    font-family: var(--t20-font);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.t20-btn:hover {
    background: var(--t20-primary);
    border-color: var(--t20-primary);
    color: var(--t20-white);
}

.t20-btn-outline {
    background: transparent;
    color: var(--t20-black);
}

.t20-btn-outline:hover {
    background: var(--t20-black);
    color: var(--t20-white);
}

/* ==================== Pagination ==================== */
.t20-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--t20-space-1);
    margin-top: var(--t20-space-5);
    flex-wrap: wrap;
}

.t20-pagination a,
.t20-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--t20-space-2);
    background: var(--t20-bg);
    border: 2px solid var(--t20-border);
    color: var(--t20-text);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.t20-pagination a:hover {
    border-color: var(--t20-black);
    color: var(--t20-black);
}

.t20-pagination .active {
    background: var(--t20-black);
    border-color: var(--t20-black);
    color: var(--t20-white);
}

.t20-pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================== Breadcrumb ==================== */
.t20-breadcrumb {
    padding: var(--t20-space-2) 0;
    margin-bottom: var(--t20-space-3);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.t20-breadcrumb a {
    color: var(--t20-text-light);
}

.t20-breadcrumb a:hover {
    color: var(--t20-primary);
}

.t20-breadcrumb span {
    color: var(--t20-text-light);
    margin: 0 var(--t20-space-1);
}

.t20-breadcrumb strong {
    color: var(--t20-black);
    font-weight: 700;
}

/* ==================== Links Section ==================== */
.t20-links-section {
    margin-top: var(--t20-space-6);
    padding-top: var(--t20-space-4);
    border-top: 3px solid var(--t20-black);
}

.t20-links-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--t20-black);
    margin-bottom: var(--t20-space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.t20-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t20-space-2);
}

.t20-links-list a {
    padding: var(--t20-space-1) var(--t20-space-2);
    background: var(--t20-bg-alt);
    border: 1px solid var(--t20-border);
    color: var(--t20-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.t20-links-list a:hover {
    border-color: var(--t20-black);
    color: var(--t20-black);
}

/* ==================== Footer ==================== */
.t20-footer {
    background: var(--t20-bg-dark);
    border-top: 3px solid var(--t20-primary);
    margin-top: var(--t20-space-8);
}

.t20-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--t20-space-6) var(--t20-space-3);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--t20-space-5);
}

.t20-footer-col h4 {
    color: var(--t20-white);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--t20-space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: var(--t20-space-2);
    border-bottom: 2px solid var(--t20-primary);
    display: inline-block;
}

.t20-footer-col p {
    color: var(--t20-gray-300);
    font-size: 0.9rem;
    margin-bottom: var(--t20-space-1);
    line-height: 1.7;
}

.t20-footer-col a {
    color: var(--t20-gray-300);
}

.t20-footer-col a:hover {
    color: var(--t20-primary);
}

.t20-footer-bottom {
    border-top: 1px solid var(--t20-gray-700);
    padding: var(--t20-space-3);
    text-align: center;
}

.t20-footer-bottom p {
    color: var(--t20-gray-500);
    font-size: 0.8rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .t20-footer-inner {
        grid-template-columns: 1fr;
        gap: var(--t20-space-4);
    }
}

/* ==================== Error Page ==================== */
.t20-error-page {
    text-align: center;
    padding: var(--t20-space-8) var(--t20-space-3);
}

.t20-error-code {
    font-family: var(--t20-font-display);
    font-size: 10rem;
    font-weight: 800;
    color: var(--t20-primary);
    line-height: 1;
    margin-bottom: var(--t20-space-2);
    letter-spacing: -0.05em;
}

.t20-error-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--t20-black);
    margin-bottom: var(--t20-space-2);
    text-transform: uppercase;
}

.t20-error-text {
    color: var(--t20-text-secondary);
    margin-bottom: var(--t20-space-4);
    font-size: 1.1rem;
}

/* ==================== Page Title ==================== */
.t20-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--t20-black);
    margin-bottom: var(--t20-space-4);
    padding-bottom: var(--t20-space-2);
    border-bottom: 3px solid var(--t20-black);
    display: flex;
    align-items: center;
    gap: var(--t20-space-2);
}

.t20-page-title::before {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--t20-primary);
    flex-shrink: 0;
}

/* ==================== Copy Notice ==================== */
.t20-copy-notice {
    margin-top: var(--t20-space-4);
    padding: var(--t20-space-2) var(--t20-space-3);
    background: var(--t20-bg-alt);
    border-left: 3px solid var(--t20-primary);
    font-size: 0.9rem;
    color: var(--t20-text-secondary);
}

.t20-copy-notice a {
    color: var(--t20-primary);
    font-weight: 600;
}

/* ==================== Responsive ==================== */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .t20-container {
        padding: 0 var(--t20-space-2);
    }

    h1, .t20-page-title {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .t20-section-title {
        font-size: 1.25rem;
    }

    .t20-card, .t20-content-section {
        padding: var(--t20-space-3);
    }

    .t20-form-card {
        padding: var(--t20-space-3);
    }

    .t20-error-code {
        font-size: 6rem;
    }
}

/* ==================== Utility Classes ==================== */
.t20-text-center { text-align: center; }
.t20-text-red { color: var(--t20-primary); }
.t20-text-black { color: var(--t20-black); }
.t20-bg-alt { background: var(--t20-bg-alt); }
.t20-mb-0 { margin-bottom: 0; }
.t20-mt-4 { margin-top: var(--t20-space-4); }
