/* ========================================
   Theme11 - Neumorphism Design
   Soft shadows, embossed/pressed effects
   ======================================== */

/* 1. CSS Custom Properties */
:root {
    --t11-primary: #6366F1;
    --t11-primary-light: #818CF8;
    --t11-primary-dark: #4F46E5;
    --t11-accent: #EC4899;
    --t11-text: #374151;
    --t11-text-secondary: #6B7280;
    --t11-text-light: #9CA3AF;
    --t11-bg: #E4E9F2;
    --t11-bg-dark: #D1D9E6;
    --t11-bg-light: #F0F4F8;
    --t11-shadow-light: #FFFFFF;
    --t11-shadow-dark: rgba(163, 177, 198, 0.6);
    --t11-neu-flat: 6px 6px 12px var(--t11-shadow-dark), -6px -6px 12px var(--t11-shadow-light);
    --t11-neu-pressed: inset 4px 4px 8px var(--t11-shadow-dark), inset -4px -4px 8px var(--t11-shadow-light);
    --t11-neu-convex: 4px 4px 8px var(--t11-shadow-dark), -4px -4px 8px var(--t11-shadow-light), inset 1px 1px 2px var(--t11-shadow-light), inset -1px -1px 2px var(--t11-shadow-dark);
    --t11-radius: 20px;
    --t11-radius-sm: 12px;
    --t11-radius-lg: 28px;
    --t11-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --t11-footer-bg: #1F2937;
    --t11-footer-text: #D1D5DB;
    --t11-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(--t11-font);
    color: var(--t11-text);
    background: var(--t11-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--t11-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--t11-primary-dark);
}
ul, ol {
    list-style: none;
}
table {
    border-collapse: collapse;
    width: 100%;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--t11-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(--t11-text-secondary);
    margin-bottom: 14px;
    line-height: 1.8;
}
b, strong {
    font-weight: 600;
    color: var(--t11-text);
}

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

/* 5. Neumorphic Card Base */
.t11-neu {
    background: var(--t11-bg);
    border-radius: var(--t11-radius);
    box-shadow: var(--t11-neu-flat);
}
.t11-neu-pressed {
    background: var(--t11-bg);
    border-radius: var(--t11-radius);
    box-shadow: var(--t11-neu-pressed);
}

/* 6. Header */
.t11-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--t11-header-h);
    background: var(--t11-bg);
    box-shadow: 0 4px 16px var(--t11-shadow-dark);
}
.t11-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.t11-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--t11-primary);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.t11-logo:hover {
    color: var(--t11-primary-dark);
}

/* 7. Navigation */
.t11-nav ul {
    display: flex;
    gap: 8px;
    align-items: center;
}
.t11-nav a {
    display: block;
    padding: 10px 18px;
    border-radius: var(--t11-radius-sm);
    color: var(--t11-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--t11-bg);
    box-shadow: 3px 3px 6px var(--t11-shadow-dark), -3px -3px 6px var(--t11-shadow-light);
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}
.t11-nav a:hover {
    color: var(--t11-primary);
    box-shadow: 2px 2px 4px var(--t11-shadow-dark), -2px -2px 4px var(--t11-shadow-light);
}
.t11-nav a.active {
    color: var(--t11-primary);
    box-shadow: inset 3px 3px 6px var(--t11-shadow-dark), inset -3px -3px 6px var(--t11-shadow-light);
}

/* 8. Mobile Menu (CSS-only checkbox hack) */
.t11-menu-toggle {
    display: none;
}
.t11-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    z-index: 101;
    background: var(--t11-bg);
    border-radius: var(--t11-radius-sm);
    box-shadow: 3px 3px 6px var(--t11-shadow-dark), -3px -3px 6px var(--t11-shadow-light);
}
.t11-menu-btn span,
.t11-menu-btn span::before,
.t11-menu-btn span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--t11-text);
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
}
.t11-menu-btn span {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.t11-menu-btn span::before {
    content: '';
    top: -6px;
}
.t11-menu-btn span::after {
    content: '';
    top: 6px;
}

/* 9. Hero / Banner */
.t11-hero {
    padding: 40px 0;
}
.t11-hero-single {
    border-radius: var(--t11-radius-lg);
    overflow: hidden;
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--t11-neu-flat);
}
.t11-hero-single::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.6));
}
.t11-hero-single a {
    position: relative;
    display: block;
    width: 100%;
    padding: 28px 36px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}
.t11-hero-grid {
    display: grid;
    gap: 24px;
}
.t11-hero-grid.row-2 { grid-template-columns: repeat(2, 1fr); }
.t11-hero-grid.row-3 { grid-template-columns: repeat(3, 1fr); }
.t11-hero-grid.row-4 { grid-template-columns: repeat(4, 1fr); }
.t11-hero-item {
    border-radius: var(--t11-radius);
    overflow: hidden;
    background: var(--t11-bg);
    box-shadow: var(--t11-neu-flat);
    transition: all 0.3s ease;
}
.t11-hero-item:hover {
    box-shadow: 8px 8px 16px var(--t11-shadow-dark), -8px -8px 16px var(--t11-shadow-light);
    transform: translateY(-4px);
}
.t11-hero-item a {
    display: block;
    text-decoration: none;
}
.t11-hero-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.t11-hero-item span {
    display: block;
    padding: 16px 18px;
    color: var(--t11-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* 10. Section Titles */
.t11-section-title {
    margin-bottom: 36px;
}
.t11-section-title h2 {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--t11-text);
    padding: 12px 24px;
    background: var(--t11-bg);
    border-radius: var(--t11-radius-sm);
    box-shadow: var(--t11-neu-flat);
}
.t11-section-title h2 a {
    color: var(--t11-text);
    text-decoration: none;
}
.t11-section-title h2 a:hover {
    color: var(--t11-primary);
}

/* 11. Neumorphic Cards */
.t11-card {
    background: var(--t11-bg);
    border-radius: var(--t11-radius);
    box-shadow: var(--t11-neu-flat);
    overflow: hidden;
    transition: all 0.3s ease;
}
.t11-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 16px var(--t11-shadow-dark), -8px -8px 16px var(--t11-shadow-light);
}
.t11-card-body {
    padding: 24px;
}
.t11-card-flat {
    background: var(--t11-bg);
    border-radius: var(--t11-radius);
    box-shadow: var(--t11-neu-flat);
    padding: 36px;
}

/* 12. Info Grid / Contact */
.t11-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.t11-info-card {
    background: var(--t11-bg);
    border-radius: var(--t11-radius);
    box-shadow: var(--t11-neu-flat);
    padding: 36px;
}
.t11-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding: 10px 16px;
    display: inline-block;
    background: var(--t11-bg);
    border-radius: var(--t11-radius-sm);
    box-shadow: inset 2px 2px 4px var(--t11-shadow-dark), inset -2px -2px 4px var(--t11-shadow-light);
    color: var(--t11-primary);
}
.t11-info-card h3 a {
    color: var(--t11-primary);
    text-decoration: none;
}
.t11-info-card h3 a:hover {
    color: var(--t11-primary-dark);
}
.t11-info-card p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--t11-text-secondary);
    word-wrap: break-word;
}
.t11-info-table {
    background: var(--t11-bg);
    border-radius: var(--t11-radius);
    box-shadow: var(--t11-neu-flat);
    padding: 36px;
}
.t11-info-table table {
    width: 100%;
}
.t11-info-table td {
    padding: 18px 24px;
    vertical-align: top;
    width: 50%;
}
.t11-info-table td.th {
    background: var(--t11-bg);
    font-weight: 600;
    color: var(--t11-text);
    border-radius: var(--t11-radius-sm);
    box-shadow: inset 2px 2px 4px var(--t11-shadow-dark), inset -2px -2px 4px var(--t11-shadow-light);
}
.t11-info-table td p {
    margin-bottom: 8px;
}

/* 13. Product Grid */
.t11-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.t11-product-card {
    background: var(--t11-bg);
    border-radius: var(--t11-radius);
    box-shadow: var(--t11-neu-flat);
    overflow: hidden;
    transition: all 0.3s ease;
}
.t11-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 10px 10px 20px var(--t11-shadow-dark), -10px -10px 20px var(--t11-shadow-light);
}
.t11-product-img {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: var(--t11-radius) var(--t11-radius) 0 0;
}
.t11-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.t11-product-card:hover .t11-product-img img {
    transform: scale(1.08);
}
.t11-product-body {
    padding: 20px 24px;
}
.t11-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.t11-product-name a {
    color: var(--t11-text);
    text-decoration: none;
}
.t11-product-name a:hover {
    color: var(--t11-primary);
}
.t11-product-time {
    font-size: 0.8rem;
    color: var(--t11-text-light);
}

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

/* 15. Forms / Message */
.t11-form-card {
    background: var(--t11-bg);
    border-radius: var(--t11-radius);
    box-shadow: var(--t11-neu-flat);
    padding: 44px;
}
.t11-form-card h2 {
    margin-bottom: 28px;
    padding: 12px 20px;
    display: inline-block;
    background: var(--t11-bg);
    border-radius: var(--t11-radius-sm);
    box-shadow: var(--t11-neu-pressed);
    color: var(--t11-primary);
}
.t11-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
.t11-form-group {
    margin-bottom: 24px;
}
.t11-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t11-text);
    margin-bottom: 10px;
}
.t11-input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--t11-radius-sm);
    font-size: 0.9rem;
    font-family: var(--t11-font);
    color: var(--t11-text);
    background: var(--t11-bg);
    box-shadow: inset 3px 3px 6px var(--t11-shadow-dark), inset -3px -3px 6px var(--t11-shadow-light);
    transition: all 0.25s ease;
    outline: none;
}
.t11-input:focus {
    box-shadow: inset 4px 4px 8px var(--t11-shadow-dark), inset -4px -4px 8px var(--t11-shadow-light);
}
.t11-input::placeholder {
    color: var(--t11-text-light);
}
.t11-textarea {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--t11-radius-sm);
    font-size: 0.9rem;
    font-family: var(--t11-font);
    color: var(--t11-text);
    background: var(--t11-bg);
    box-shadow: inset 3px 3px 6px var(--t11-shadow-dark), inset -3px -3px 6px var(--t11-shadow-light);
    resize: vertical;
    min-height: 140px;
    transition: all 0.25s ease;
    outline: none;
}
.t11-textarea:focus {
    box-shadow: inset 4px 4px 8px var(--t11-shadow-dark), inset -4px -4px 8px var(--t11-shadow-light);
}
.t11-textarea::placeholder {
    color: var(--t11-text-light);
}
.t11-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--t11-primary);
    color: #fff;
    border: none;
    border-radius: var(--t11-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--t11-font);
    cursor: pointer;
    box-shadow: 4px 4px 8px var(--t11-shadow-dark), -4px -4px 8px var(--t11-shadow-light);
    transition: all 0.25s ease;
}
.t11-btn:hover {
    background: var(--t11-primary-dark);
    box-shadow: 2px 2px 4px var(--t11-shadow-dark), -2px -2px 4px var(--t11-shadow-light);
    transform: translateY(-2px);
}
.t11-btn:active {
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

/* 16. Pagination */
.t11-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 40px 0 12px;
    flex-wrap: wrap;
}
.t11-pagination li {
    display: inline-block;
}
.t11-pagination a,
.t11-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--t11-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}
.t11-pagination a {
    background: var(--t11-bg);
    color: var(--t11-text-secondary);
    box-shadow: 3px 3px 6px var(--t11-shadow-dark), -3px -3px 6px var(--t11-shadow-light);
}
.t11-pagination a:hover {
    color: var(--t11-primary);
    box-shadow: 2px 2px 4px var(--t11-shadow-dark), -2px -2px 4px var(--t11-shadow-light);
}
.t11-pagination span {
    background: var(--t11-primary);
    color: #fff;
    box-shadow: 3px 3px 6px var(--t11-shadow-dark), -3px -3px 6px var(--t11-shadow-light);
}
.t11-pagination .t11-page-nav a {
    font-size: 0.85rem;
    color: var(--t11-text-light);
}

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

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

/* 19. Error Page */
.t11-error {
    text-align: center;
    padding: 100px 20px;
}
.t11-error h1 {
    font-size: 6rem;
    color: var(--t11-primary);
    margin-bottom: 20px;
    text-shadow: 4px 4px 8px var(--t11-shadow-dark), -4px -4px 8px var(--t11-shadow-light);
}
.t11-error p {
    font-size: 1.15rem;
    margin-bottom: 28px;
}
.t11-error a {
    display: inline-block;
    padding: 12px 32px;
    background: var(--t11-bg);
    color: var(--t11-primary);
    font-weight: 600;
    border-radius: var(--t11-radius-sm);
    box-shadow: var(--t11-neu-flat);
    transition: all 0.25s ease;
}
.t11-error a:hover {
    box-shadow: var(--t11-neu-pressed);
}

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

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

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

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

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

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

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

    /* Mobile menu button */
    .t11-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Side-slide mobile nav */
    .t11-nav {
        position: fixed;
        top: var(--t11-header-h);
        right: -300px;
        width: 300px;
        height: calc(100vh - var(--t11-header-h));
        background: var(--t11-bg);
        box-shadow: -8px 0 24px var(--t11-shadow-dark);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 200;
    }
    .t11-menu-toggle:checked ~ .t11-nav {
        right: 0;
    }
    .t11-nav ul {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
    .t11-nav a {
        padding: 14px 20px;
    }

    /* Hamburger → X animation */
    .t11-menu-toggle:checked ~ .t11-menu-btn {
        box-shadow: inset 3px 3px 6px var(--t11-shadow-dark), inset -3px -3px 6px var(--t11-shadow-light);
    }
    .t11-menu-toggle:checked ~ .t11-menu-btn span {
        background: transparent;
    }
    .t11-menu-toggle:checked ~ .t11-menu-btn span::before {
        top: 0;
        transform: rotate(45deg);
    }
    .t11-menu-toggle:checked ~ .t11-menu-btn span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Overlay */
    .t11-menu-toggle:checked ~ .t11-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }

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

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

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