/* ========================================
   Theme10 - Glassmorphism Design
   Frosted glass effects, soft gradients
   ======================================== */

/* 1. CSS Custom Properties */
:root {
    --t10-primary: #6366F1;
    --t10-primary-light: #818CF8;
    --t10-primary-dark: #4F46E5;
    --t10-accent: #EC4899;
    --t10-text: #1E293B;
    --t10-text-secondary: #64748B;
    --t10-text-light: #94A3B8;
    --t10-text-on-glass: #334155;
    --t10-bg-body: linear-gradient(135deg, #E0E7FF 0%, #FCE7F3 50%, #DBEAFE 100%);
    --t10-bg-solid: #F1F5F9;
    --t10-glass: rgba(255, 255, 255, 0.7);
    --t10-glass-border: rgba(255, 255, 255, 0.5);
    --t10-glass-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
    --t10-border: rgba(255, 255, 255, 0.3);
    --t10-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --t10-shadow-md: 0 8px 24px rgba(99, 102, 241, 0.12);
    --t10-shadow-lg: 0 16px 48px rgba(99, 102, 241, 0.15);
    --t10-radius: 16px;
    --t10-radius-sm: 10px;
    --t10-radius-lg: 24px;
    --t10-blur: 12px;
    --t10-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --t10-footer-bg: linear-gradient(135deg, #312E81 0%, #4C1D95 100%);
    --t10-footer-text: #E0E7FF;
    --t10-header-h: 72px;
}

/* 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(--t10-font);
    color: var(--t10-text);
    background: var(--t10-bg-body);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--t10-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--t10-primary-dark);
}
ul, ol {
    list-style: none;
}
table {
    border-collapse: collapse;
    width: 100%;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--t10-text);
    line-height: 1.3;
    font-weight: 700;
}
h1 { font-size: 2rem; margin-bottom: 16px; }
h2 { font-size: 1.5rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
p {
    color: var(--t10-text-secondary);
    margin-bottom: 14px;
    line-height: 1.8;
}
b, strong {
    font-weight: 600;
    color: var(--t10-text);
}

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

/* 5. Glass Card Mixin Style */
.t10-glass {
    background: var(--t10-glass);
    backdrop-filter: blur(var(--t10-blur));
    -webkit-backdrop-filter: blur(var(--t10-blur));
    border: 1px solid var(--t10-glass-border);
    border-radius: var(--t10-radius);
    box-shadow: var(--t10-glass-shadow);
}

/* 6. Header */
.t10-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--t10-header-h);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--t10-border);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}
.t10-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.t10-logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--t10-primary), var(--t10-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.t10-logo:hover {
    opacity: 0.85;
}

/* 7. Navigation */
.t10-nav ul {
    display: flex;
    gap: 6px;
    align-items: center;
}
.t10-nav a {
    display: block;
    padding: 10px 18px;
    border-radius: var(--t10-radius-sm);
    color: var(--t10-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}
.t10-nav a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--t10-primary);
}
.t10-nav a.active {
    background: linear-gradient(135deg, var(--t10-primary), var(--t10-primary-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 8. Mobile Menu (CSS-only checkbox hack) */
.t10-menu-toggle {
    display: none;
}
.t10-menu-btn {
    display: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: relative;
    z-index: 101;
}
.t10-menu-btn span,
.t10-menu-btn span::before,
.t10-menu-btn span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--t10-text);
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
}
.t10-menu-btn span {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.t10-menu-btn span::before {
    content: '';
    top: -7px;
}
.t10-menu-btn span::after {
    content: '';
    top: 7px;
}

/* 9. Hero / Banner */
.t10-hero {
    padding: 40px 0;
}
.t10-hero-single {
    border-radius: var(--t10-radius-lg);
    overflow: hidden;
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--t10-shadow-lg);
}
.t10-hero-single::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(99, 102, 241, 0.8));
}
.t10-hero-single a {
    position: relative;
    display: block;
    width: 100%;
    padding: 28px 36px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}
.t10-hero-grid {
    display: grid;
    gap: 20px;
}
.t10-hero-grid.row-2 { grid-template-columns: repeat(2, 1fr); }
.t10-hero-grid.row-3 { grid-template-columns: repeat(3, 1fr); }
.t10-hero-grid.row-4 { grid-template-columns: repeat(4, 1fr); }
.t10-hero-item {
    border-radius: var(--t10-radius);
    overflow: hidden;
    background: var(--t10-glass);
    backdrop-filter: blur(var(--t10-blur));
    -webkit-backdrop-filter: blur(var(--t10-blur));
    border: 1px solid var(--t10-glass-border);
    box-shadow: var(--t10-shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.t10-hero-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--t10-shadow-lg);
}
.t10-hero-item a {
    display: block;
    text-decoration: none;
}
.t10-hero-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.t10-hero-item span {
    display: block;
    padding: 16px 18px;
    color: var(--t10-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* 10. Section Titles */
.t10-section-title {
    margin-bottom: 36px;
}
.t10-section-title h2 {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--t10-text), var(--t10-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.t10-section-title h2 a {
    background: linear-gradient(135deg, var(--t10-text), var(--t10-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}
.t10-section-title h2 a:hover {
    opacity: 0.8;
}

/* 11. Glass Cards */
.t10-card {
    background: var(--t10-glass);
    backdrop-filter: blur(var(--t10-blur));
    -webkit-backdrop-filter: blur(var(--t10-blur));
    border: 1px solid var(--t10-glass-border);
    border-radius: var(--t10-radius);
    box-shadow: var(--t10-shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.t10-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t10-shadow-lg);
}
.t10-card-body {
    padding: 24px;
}
.t10-card-flat {
    background: var(--t10-glass);
    backdrop-filter: blur(var(--t10-blur));
    -webkit-backdrop-filter: blur(var(--t10-blur));
    border: 1px solid var(--t10-glass-border);
    border-radius: var(--t10-radius);
    box-shadow: var(--t10-shadow-md);
    padding: 36px;
}

/* 12. Info Grid / Contact */
.t10-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.t10-info-card {
    background: var(--t10-glass);
    backdrop-filter: blur(var(--t10-blur));
    -webkit-backdrop-filter: blur(var(--t10-blur));
    border: 1px solid var(--t10-glass-border);
    border-radius: var(--t10-radius);
    box-shadow: var(--t10-shadow-md);
    padding: 36px;
}
.t10-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--t10-primary);
    display: inline-block;
}
.t10-info-card h3 a {
    color: var(--t10-text);
    text-decoration: none;
}
.t10-info-card h3 a:hover {
    color: var(--t10-primary);
}
.t10-info-card p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--t10-text-secondary);
    word-wrap: break-word;
}
.t10-info-table {
    background: var(--t10-glass);
    backdrop-filter: blur(var(--t10-blur));
    -webkit-backdrop-filter: blur(var(--t10-blur));
    border: 1px solid var(--t10-glass-border);
    border-radius: var(--t10-radius);
    box-shadow: var(--t10-shadow-md);
    padding: 36px;
}
.t10-info-table table {
    width: 100%;
}
.t10-info-table td {
    padding: 18px 24px;
    vertical-align: top;
    width: 50%;
}
.t10-info-table td.th {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
    color: var(--t10-text);
    border-radius: var(--t10-radius-sm);
}
.t10-info-table td p {
    margin-bottom: 8px;
}

/* 13. Product Grid */
.t10-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.t10-product-card {
    background: var(--t10-glass);
    backdrop-filter: blur(var(--t10-blur));
    -webkit-backdrop-filter: blur(var(--t10-blur));
    border: 1px solid var(--t10-glass-border);
    border-radius: var(--t10-radius);
    box-shadow: var(--t10-shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.t10-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--t10-shadow-lg);
}
.t10-product-img {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.t10-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.t10-product-card:hover .t10-product-img img {
    transform: scale(1.08);
}
.t10-product-body {
    padding: 18px 22px;
}
.t10-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.t10-product-name a {
    color: var(--t10-text);
    text-decoration: none;
}
.t10-product-name a:hover {
    color: var(--t10-primary);
}
.t10-product-time {
    font-size: 0.8rem;
    color: var(--t10-text-light);
}

/* 14. Product Detail */
.t10-breadcrumb {
    padding: 18px 0;
    font-size: 0.85rem;
    color: var(--t10-text-light);
}
.t10-breadcrumb a {
    color: var(--t10-text-secondary);
    text-decoration: none;
}
.t10-breadcrumb a:hover {
    color: var(--t10-primary);
}
.t10-breadcrumb .t10-sep {
    margin: 0 10px;
    color: var(--t10-text-light);
}
.t10-detail-card {
    background: var(--t10-glass);
    backdrop-filter: blur(var(--t10-blur));
    -webkit-backdrop-filter: blur(var(--t10-blur));
    border: 1px solid var(--t10-glass-border);
    border-radius: var(--t10-radius);
    box-shadow: var(--t10-shadow-md);
    padding: 44px;
    margin-bottom: 44px;
}
.t10-detail-card h1 {
    font-size: 1.65rem;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--t10-border);
}
.t10-detail-img {
    text-align: center;
    margin-bottom: 28px;
}
.t10-detail-img img {
    max-width: 100%;
    border-radius: var(--t10-radius-sm);
    margin: 0 auto;
    box-shadow: var(--t10-shadow-md);
}
.t10-detail-content {
    line-height: 1.9;
    color: var(--t10-text-secondary);
}
.t10-detail-content img {
    max-width: 100%;
    border-radius: var(--t10-radius-sm);
    margin: 14px 0;
}

/* 15. Forms / Message */
.t10-form-card {
    background: var(--t10-glass);
    backdrop-filter: blur(var(--t10-blur));
    -webkit-backdrop-filter: blur(var(--t10-blur));
    border: 1px solid var(--t10-glass-border);
    border-radius: var(--t10-radius);
    box-shadow: var(--t10-shadow-md);
    padding: 44px;
}
.t10-form-card h2 {
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--t10-primary);
    display: inline-block;
}
.t10-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
.t10-form-group {
    margin-bottom: 24px;
}
.t10-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t10-text);
    margin-bottom: 8px;
}
.t10-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--t10-glass-border);
    border-radius: var(--t10-radius-sm);
    font-size: 0.9rem;
    font-family: var(--t10-font);
    color: var(--t10-text);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    outline: none;
}
.t10-input:focus {
    border-color: var(--t10-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.8);
}
.t10-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--t10-glass-border);
    border-radius: var(--t10-radius-sm);
    font-size: 0.9rem;
    font-family: var(--t10-font);
    color: var(--t10-text);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    resize: vertical;
    min-height: 140px;
    transition: all 0.25s ease;
    outline: none;
}
.t10-textarea:focus {
    border-color: var(--t10-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.8);
}
.t10-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--t10-primary), var(--t10-primary-light));
    color: #fff;
    border: none;
    border-radius: var(--t10-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--t10-font);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transition: all 0.25s ease;
}
.t10-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}
.t10-btn:active {
    transform: translateY(0);
}

/* 16. Pagination */
.t10-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0 12px;
    flex-wrap: wrap;
}
.t10-pagination li {
    display: inline-block;
}
.t10-pagination a,
.t10-pagination span {
    display: inline-block;
    min-width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    padding: 0 14px;
    border-radius: var(--t10-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}
.t10-pagination a {
    background: var(--t10-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--t10-text-secondary);
    border: 1px solid var(--t10-glass-border);
}
.t10-pagination a:hover {
    background: linear-gradient(135deg, var(--t10-primary), var(--t10-primary-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.t10-pagination span {
    background: linear-gradient(135deg, var(--t10-primary), var(--t10-primary-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.t10-pagination .t10-page-nav a {
    font-size: 0.85rem;
    color: var(--t10-text-light);
}

/* 17. Friend Links */
.t10-links {
    padding: 28px 0;
    font-size: 0.85rem;
    color: var(--t10-text-light);
}
.t10-links span {
    font-weight: 600;
    color: var(--t10-text-secondary);
}
.t10-links a {
    color: var(--t10-text-light);
    margin: 0 6px;
    text-decoration: none;
}
.t10-links a:hover {
    color: var(--t10-primary);
}

/* 18. Footer */
.t10-footer {
    background: var(--t10-footer-bg);
    color: var(--t10-footer-text);
    padding: 48px 0 36px;
    margin-top: auto;
}
.t10-footer p {
    color: var(--t10-footer-text);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.8;
}
.t10-footer a {
    color: var(--t10-footer-text);
    text-decoration: none;
    transition: color 0.2s;
}
.t10-footer a:hover {
    color: #fff;
}
.t10-footer-copyright {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}
.t10-footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
}
.t10-footer-copyright a:hover {
    color: #fff;
}

/* 19. Error Page */
.t10-error {
    text-align: center;
    padding: 100px 20px;
}
.t10-error h1 {
    font-size: 6rem;
    background: linear-gradient(135deg, var(--t10-primary), var(--t10-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}
.t10-error p {
    font-size: 1.15rem;
    margin-bottom: 28px;
}
.t10-error a {
    color: var(--t10-primary);
    font-weight: 600;
}

/* 20. Page Info */
.t10-page-info {
    font-size: 0.8rem;
    color: var(--t10-text-light);
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--t10-border);
}

/* 21. Module Wrapper */
.t10-module {
    margin-bottom: 48px;
}

/* 22. Anti-scraping div (hidden) */
.t10-wrapper > div[class^="app-"] {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .t10-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .t10-hero-grid.row-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --t10-header-h: 64px;
    }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .t10-section {
        padding: 36px 0;
    }

    /* Mobile menu button */
    .t10-menu-btn {
        display: block;
    }

    /* Dropdown mobile nav */
    .t10-nav {
        position: fixed;
        top: var(--t10-header-h);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--t10-border);
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 200;
    }
    .t10-menu-toggle:checked ~ .t10-nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .t10-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 16px;
    }
    .t10-nav a {
        padding: 14px 18px;
        border-radius: var(--t10-radius-sm);
    }

    /* Hamburger → X animation */
    .t10-menu-toggle:checked ~ .t10-menu-btn span {
        background: transparent;
    }
    .t10-menu-toggle:checked ~ .t10-menu-btn span::before {
        top: 0;
        transform: rotate(45deg);
    }
    .t10-menu-toggle:checked ~ .t10-menu-btn span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Grid responsive */
    .t10-product-grid,
    .t10-info-grid {
        grid-template-columns: 1fr;
    }
    .t10-hero-grid.row-2,
    .t10-hero-grid.row-3,
    .t10-hero-grid.row-4 {
        grid-template-columns: 1fr;
    }
    .t10-hero-single {
        height: 240px;
    }
    .t10-hero-item img {
        height: 180px;
    }
    .t10-form-row {
        grid-template-columns: 1fr;
    }
    .t10-card-flat,
    .t10-info-card,
    .t10-detail-card,
    .t10-form-card,
    .t10-info-table {
        padding: 24px;
    }
    .t10-info-table td {
        display: block;
        width: 100%;
    }

    /* Logo */
    .t10-logo {
        font-size: 1.15rem;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .t10-container {
        padding: 0 16px;
    }
    .t10-product-img {
        height: 180px;
    }
    .t10-hero-item img {
        height: 160px;
    }
}
