/* Theme21 - Neomorphism Style */
/* 新拟态风格：柔和阴影、凸起凹陷效果、柔软触感 */

/* ==================== CSS Variables ==================== */
:root {
    /* Primary Colors - Soft Blue */
    --t21-primary: #6C63FF;
    --t21-primary-light: #8B85FF;
    --t21-primary-dark: #5046E5;
    --t21-primary-soft: rgba(108, 99, 255, 0.15);

    /* Secondary Colors - Soft Pink */
    --t21-secondary: #FF6B9D;
    --t21-secondary-light: #FF8FB3;
    --t21-secondary-dark: #E5527F;

    /* Accent Colors - Soft Teal */
    --t21-accent: #00D9C0;
    --t21-accent-light: #33E3D0;

    /* Background Colors - Essential for Neomorphism */
    --t21-bg: #E8EEF5;
    --t21-bg-alt: #E0E5EC;
    --t21-bg-card: #E8EEF5;
    --t21-bg-dark: #2D3748;

    /* Text Colors */
    --t21-text: #4A5568;
    --t21-text-secondary: #718096;
    --t21-text-light: #A0AEC0;
    --t21-text-inverse: #FFFFFF;

    /* Neomorphism Shadow Colors */
    --t21-shadow-light: #FFFFFF;
    --t21-shadow-dark: rgba(174, 174, 192, 0.4);
    --t21-shadow-dark-strong: rgba(174, 174, 192, 0.6);

    /* Neomorphism Effects - Raised */
    --t21-neo-raised: 6px 6px 12px var(--t21-shadow-dark),
                      -6px -6px 12px var(--t21-shadow-light);
    --t21-neo-raised-sm: 3px 3px 6px var(--t21-shadow-dark),
                         -3px -3px 6px var(--t21-shadow-light);
    --t21-neo-raised-lg: 10px 10px 20px var(--t21-shadow-dark),
                         -10px -10px 20px var(--t21-shadow-light);

    /* Neomorphism Effects - Pressed/Inset */
    --t21-neo-pressed: inset 4px 4px 8px var(--t21-shadow-dark),
                       inset -4px -4px 8px var(--t21-shadow-light);
    --t21-neo-pressed-sm: inset 2px 2px 4px var(--t21-shadow-dark),
                          inset -2px -2px 4px var(--t21-shadow-light);

    /* Border */
    --t21-border: rgba(255, 255, 255, 0.5);

    /* Layout */
    --t21-radius: 20px;
    --t21-radius-sm: 12px;
    --t21-radius-lg: 28px;
    --t21-radius-full: 50px;

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

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--t21-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--t21-text);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 16px;
    color: var(--t21-text-secondary);
}

/* ==================== Layout ==================== */
.t21-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.t21-inner {
    padding: 48px 0;
}

/* ==================== Header & Navigation ==================== */
.t21-header {
    background: var(--t21-bg);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.t21-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--t21-bg);
    border-radius: var(--t21-radius-lg);
    box-shadow: var(--t21-neo-raised);
}

.t21-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--t21-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.t21-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--t21-primary), var(--t21-secondary));
    border-radius: var(--t21-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--t21-neo-raised-sm);
}

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

.t21-nav a {
    padding: 12px 20px;
    color: var(--t21-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--t21-radius-sm);
    transition: all 0.3s ease;
}

.t21-nav a:hover {
    color: var(--t21-primary);
    box-shadow: var(--t21-neo-pressed-sm);
}

.t21-nav a.active {
    color: var(--t21-text-inverse);
    background: linear-gradient(135deg, var(--t21-primary), var(--t21-primary-light));
    box-shadow: var(--t21-neo-raised-sm);
}

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

.t21-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    background: var(--t21-bg);
    border: none;
    border-radius: var(--t21-radius-sm);
    box-shadow: var(--t21-neo-raised-sm);
    padding: 12px;
}

.t21-menu-btn span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--t21-primary);
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .t21-nav {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 24px;
        right: 24px;
        background: var(--t21-bg);
        border-radius: var(--t21-radius);
        box-shadow: var(--t21-neo-raised-lg);
        padding: 16px;
    }

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

    .t21-nav a {
        display: block;
        padding: 14px 20px;
        color: var(--t21-text-secondary);
        font-weight: 500;
        border-radius: var(--t21-radius-sm);
        margin-bottom: 8px;
    }

    .t21-nav li:last-child a {
        margin-bottom: 0;
    }

    .t21-nav a:hover,
    .t21-nav a.active {
        color: var(--t21-primary);
        box-shadow: var(--t21-neo-pressed-sm);
    }

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

    .t21-menu-toggle:checked ~ .t21-nav {
        display: block;
        animation: t21-fadeIn 0.3s ease;
    }

    .t21-menu-toggle:checked ~ .t21-menu-btn {
        box-shadow: var(--t21-neo-pressed-sm);
    }

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

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

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

@keyframes t21-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Banner ==================== */
.t21-hero {
    background: var(--t21-bg);
    border-radius: var(--t21-radius-lg);
    box-shadow: var(--t21-neo-raised);
    margin-bottom: 40px;
    overflow: hidden;
}

.t21-hero-single {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px;
}

.t21-hero-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--t21-radius);
}

.t21-hero-grid {
    display: grid;
    gap: 16px;
    padding: 16px;
}

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

.t21-hero-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--t21-radius);
    box-shadow: var(--t21-neo-raised-sm);
}

.t21-hero-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.t21-hero-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--t21-text-inverse);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0 0 var(--t21-radius) var(--t21-radius);
}

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

/* ==================== Section Titles ==================== */
.t21-section-title {
    font-size: 1.5rem;
    color: var(--t21-text);
    margin-bottom: 32px;
    padding: 20px 28px;
    background: var(--t21-bg);
    border-radius: var(--t21-radius);
    box-shadow: var(--t21-neo-raised);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.t21-section-title::before {
    content: '';
    width: 8px;
    height: 32px;
    background: linear-gradient(180deg, var(--t21-primary), var(--t21-secondary));
    border-radius: 4px;
    flex-shrink: 0;
}

/* ==================== Cards ==================== */
.t21-card {
    background: var(--t21-bg);
    border-radius: var(--t21-radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--t21-neo-raised);
    transition: all 0.3s ease;
}

.t21-card:hover {
    box-shadow: var(--t21-neo-raised-lg);
}

.t21-card h3 {
    margin-bottom: 16px;
}

/* ==================== Product Grid ==================== */
.t21-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.t21-product-card {
    background: var(--t21-bg);
    border-radius: var(--t21-radius);
    overflow: hidden;
    box-shadow: var(--t21-neo-raised);
    transition: all 0.3s ease;
}

.t21-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--t21-neo-raised-lg);
}

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

.t21-product-img {
    position: relative;
    overflow: hidden;
    margin: 12px;
    border-radius: var(--t21-radius-sm);
    box-shadow: var(--t21-neo-pressed-sm);
}

.t21-product-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.t21-product-card:hover .t21-product-img img {
    transform: scale(1.08);
}

.t21-product-info {
    padding: 16px 20px 20px;
}

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

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

.t21-product-time {
    font-size: 0.8rem;
    color: var(--t21-text-light);
}

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

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

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

/* ==================== Content Sections ==================== */
.t21-content-section {
    background: var(--t21-bg);
    border-radius: var(--t21-radius);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--t21-neo-raised);
}

/* ==================== Contact Info ==================== */
.t21-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.t21-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--t21-bg);
    border-radius: var(--t21-radius-sm);
    box-shadow: var(--t21-neo-raised-sm);
    transition: all 0.3s ease;
}

.t21-contact-item:hover {
    box-shadow: var(--t21-neo-pressed-sm);
}

.t21-contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--t21-primary), var(--t21-secondary));
    border-radius: var(--t21-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--t21-neo-raised-sm);
}

.t21-contact-text h4 {
    color: var(--t21-primary);
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
}

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

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

/* ==================== Company Info Table ==================== */
.t21-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.t21-info-table tr {
    background: var(--t21-bg);
    border-radius: var(--t21-radius-sm);
    box-shadow: var(--t21-neo-raised-sm);
}

.t21-info-table th {
    width: 140px;
    padding: 16px 20px;
    text-align: left;
    color: var(--t21-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--t21-radius-sm) 0 0 var(--t21-radius-sm);
    background: var(--t21-bg);
}

.t21-info-table td {
    padding: 16px 20px;
    color: var(--t21-text);
    border-radius: 0 var(--t21-radius-sm) var(--t21-radius-sm) 0;
    background: var(--t21-bg);
}

/* Two Column Layout */
.t21-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.t21-two-col .t21-col h3 {
    margin-bottom: 24px;
    color: var(--t21-text);
}

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

/* ==================== Forms ==================== */
.t21-form-card {
    background: var(--t21-bg);
    border-radius: var(--t21-radius);
    padding: 32px;
    box-shadow: var(--t21-neo-raised);
}

.t21-form-group {
    margin-bottom: 24px;
}

.t21-form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--t21-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.t21-form-group input,
.t21-form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--t21-bg);
    border: none;
    border-radius: var(--t21-radius-sm);
    color: var(--t21-text);
    font-size: 1rem;
    font-family: var(--t21-font);
    box-shadow: var(--t21-neo-pressed-sm);
    transition: all 0.3s ease;
}

.t21-form-group input:focus,
.t21-form-group textarea:focus {
    outline: none;
    box-shadow: var(--t21-neo-pressed),
                0 0 0 3px var(--t21-primary-soft);
}

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

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

/* ==================== Buttons ==================== */
.t21-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--t21-primary), var(--t21-primary-light));
    border: none;
    border-radius: var(--t21-radius-full);
    color: var(--t21-text-inverse);
    font-family: var(--t21-font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--t21-neo-raised-sm);
    transition: all 0.3s ease;
}

.t21-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--t21-neo-raised);
    color: var(--t21-text-inverse);
}

.t21-btn:active {
    transform: translateY(0);
    box-shadow: var(--t21-neo-pressed-sm);
}

.t21-btn-secondary {
    background: var(--t21-bg);
    color: var(--t21-primary);
}

.t21-btn-secondary:hover {
    color: var(--t21-primary-dark);
}

/* ==================== Pagination ==================== */
.t21-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.t21-pagination a,
.t21-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    background: var(--t21-bg);
    border-radius: var(--t21-radius-sm);
    color: var(--t21-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--t21-neo-raised-sm);
    transition: all 0.3s ease;
}

.t21-pagination a:hover {
    color: var(--t21-primary);
    box-shadow: var(--t21-neo-pressed-sm);
}

.t21-pagination .active {
    background: linear-gradient(135deg, var(--t21-primary), var(--t21-primary-light));
    color: var(--t21-text-inverse);
}

.t21-pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== Breadcrumb ==================== */
.t21-breadcrumb {
    padding: 16px 24px;
    margin-bottom: 24px;
    background: var(--t21-bg);
    border-radius: var(--t21-radius-sm);
    box-shadow: var(--t21-neo-raised-sm);
    font-size: 0.9rem;
}

.t21-breadcrumb a {
    color: var(--t21-text-secondary);
}

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

.t21-breadcrumb span {
    color: var(--t21-text-light);
    margin: 0 10px;
}

.t21-breadcrumb strong {
    color: var(--t21-primary);
    font-weight: 600;
}

/* ==================== Links Section ==================== */
.t21-links-section {
    margin-top: 48px;
    padding: 32px;
    background: var(--t21-bg);
    border-radius: var(--t21-radius);
    box-shadow: var(--t21-neo-raised);
}

.t21-links-title {
    font-size: 1rem;
    color: var(--t21-text);
    margin-bottom: 20px;
    font-weight: 600;
}

.t21-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.t21-links-list a {
    padding: 10px 18px;
    background: var(--t21-bg);
    border-radius: var(--t21-radius-full);
    color: var(--t21-text-secondary);
    font-size: 0.85rem;
    box-shadow: var(--t21-neo-raised-sm);
    transition: all 0.3s ease;
}

.t21-links-list a:hover {
    color: var(--t21-primary);
    box-shadow: var(--t21-neo-pressed-sm);
}

/* ==================== Footer ==================== */
.t21-footer {
    background: var(--t21-bg-dark);
    margin-top: 60px;
    border-radius: var(--t21-radius-lg) var(--t21-radius-lg) 0 0;
}

.t21-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.t21-footer-col h4 {
    color: var(--t21-text-inverse);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--t21-primary);
    display: inline-block;
}

.t21-footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.8;
}

.t21-footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

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

.t21-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    text-align: center;
}

.t21-footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .t21-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ==================== Error Page ==================== */
.t21-error-page {
    text-align: center;
    padding: 80px 24px;
}

.t21-error-code {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--t21-primary), var(--t21-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.t21-error-title {
    font-size: 2rem;
    color: var(--t21-text);
    margin-bottom: 16px;
}

.t21-error-text {
    color: var(--t21-text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* ==================== Page Title ==================== */
.t21-page-title {
    font-size: 2rem;
    color: var(--t21-text);
    margin-bottom: 32px;
    padding: 24px 32px;
    background: var(--t21-bg);
    border-radius: var(--t21-radius);
    box-shadow: var(--t21-neo-raised);
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.t21-page-title::before {
    content: '';
    width: 10px;
    height: 40px;
    background: linear-gradient(180deg, var(--t21-primary), var(--t21-secondary));
    border-radius: 5px;
    flex-shrink: 0;
}

/* ==================== Copy Notice ==================== */
.t21-copy-notice {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--t21-bg);
    border-radius: var(--t21-radius-sm);
    box-shadow: var(--t21-neo-pressed-sm);
    font-size: 0.9rem;
    color: var(--t21-text-secondary);
}

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

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

    .t21-container {
        padding: 0 16px;
    }

    h1, .t21-page-title {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .t21-section-title {
        font-size: 1.25rem;
        padding: 16px 20px;
    }

    .t21-card, .t21-content-section {
        padding: 24px;
    }

    .t21-form-card {
        padding: 24px;
    }

    .t21-error-code {
        font-size: 5rem;
    }

    .t21-page-title {
        padding: 20px 24px;
    }
}

/* ==================== Utility Classes ==================== */
.t21-text-center { text-align: center; }
.t21-text-primary { color: var(--t21-primary); }
.t21-text-secondary { color: var(--t21-secondary); }
.t21-neo-raised { box-shadow: var(--t21-neo-raised); }
.t21-neo-pressed { box-shadow: var(--t21-neo-pressed); }
.t21-mb-0 { margin-bottom: 0; }
.t21-mt-4 { margin-top: 32px; }
