/* ========================================
   Theme13 - Dark Tech Design
   Cyberpunk aesthetic with neon accents
   ======================================== */

/* 1. CSS Custom Properties */
:root {
    --t13-primary: #00D9FF;
    --t13-primary-light: #5CE1FF;
    --t13-primary-dark: #00B8D9;
    --t13-secondary: #BD00FF;
    --t13-accent: #FF006E;
    --t13-success: #00FF94;
    --t13-text: #E4E4E7;
    --t13-text-secondary: #A1A1AA;
    --t13-text-light: #71717A;
    --t13-text-inverse: #09090B;
    --t13-bg: #09090B;
    --t13-bg-card: #18181B;
    --t13-bg-elevated: #27272A;
    --t13-border: #3F3F46;
    --t13-border-glow: rgba(0, 217, 255, 0.3);
    --t13-glow: 0 0 20px rgba(0, 217, 255, 0.3);
    --t13-glow-strong: 0 0 30px rgba(0, 217, 255, 0.5);
    --t13-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --t13-radius: 12px;
    --t13-radius-sm: 8px;
    --t13-radius-lg: 20px;
    --t13-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --t13-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(--t13-font);
    color: var(--t13-text);
    background: var(--t13-bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--t13-primary);
    text-decoration: none;
    transition: all 0.25s ease;
}
a:hover {
    color: var(--t13-primary-light);
    text-shadow: var(--t13-glow);
}
ul, ol {
    list-style: none;
}
table {
    border-collapse: collapse;
    width: 100%;
}

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

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

/* 5. Header */
.t13-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--t13-border);
    height: var(--t13-header-h);
}
.t13-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.t13-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--t13-text);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}
.t13-logo:hover {
    color: var(--t13-primary);
    text-shadow: var(--t13-glow);
}

/* 6. Navigation */
.t13-nav {
    display: flex;
    gap: 4px;
}
.t13-nav ul {
    display: contents;
}
.t13-nav li {
    list-style: none;
}
.t13-nav a {
    padding: 10px 20px;
    color: var(--t13-text-secondary);
    font-weight: 500;
    border-radius: var(--t13-radius-sm);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    position: relative;
}
.t13-nav a:hover,
.t13-nav a.active {
    color: var(--t13-primary);
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--t13-border-glow);
    text-shadow: var(--t13-glow);
}

/* 7. Mobile Menu Toggle */
.t13-menu-toggle {
    display: none;
}
.t13-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius-sm);
    cursor: pointer;
    position: relative;
    z-index: 1001;
}
.t13-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--t13-primary);
    margin: 4px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--t13-primary);
}

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

/* 9. Hero / Banner */
.t13-hero {
    margin-bottom: 48px;
}
.t13-hero-single {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--t13-radius-lg);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--t13-border);
}
.t13-hero-single::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,9,11,0.95), rgba(9,9,11,0.3) 60%);
}
.t13-hero-single::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--t13-radius-lg);
    box-shadow: inset 0 0 60px rgba(0, 217, 255, 0.1);
    pointer-events: none;
}
.t13-hero-single a {
    position: relative;
    z-index: 1;
    color: var(--t13-text);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 14px 32px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--t13-border-glow);
    border-radius: var(--t13-radius-sm);
    text-shadow: var(--t13-glow);
}
.t13-hero-grid {
    display: grid;
    gap: 20px;
}
.t13-hero-grid.row-1 { grid-template-columns: 1fr; }
.t13-hero-grid.row-2 { grid-template-columns: repeat(2, 1fr); }
.t13-hero-grid.row-3 { grid-template-columns: repeat(3, 1fr); }
.t13-hero-grid.row-4 { grid-template-columns: repeat(4, 1fr); }
.t13-hero-item {
    border-radius: var(--t13-radius);
    overflow: hidden;
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    transition: all 0.3s ease;
}
.t13-hero-item:hover {
    border-color: var(--t13-border-glow);
    box-shadow: var(--t13-glow);
    transform: translateY(-4px);
}
.t13-hero-item a {
    display: block;
}
.t13-hero-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}
.t13-hero-item:hover img {
    filter: brightness(1);
}
.t13-hero-item span {
    display: block;
    padding: 16px;
    text-align: center;
    color: var(--t13-text);
    font-weight: 500;
}

/* 10. Section Title */
.t13-section-title {
    margin-bottom: 32px;
}
.t13-section-title h2 {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--t13-primary);
    padding: 14px 28px;
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border-glow);
    border-radius: var(--t13-radius);
    text-shadow: var(--t13-glow);
}
.t13-section-title h2 a {
    color: inherit;
}

/* 11. Module */
.t13-module {
    margin-bottom: 48px;
}

/* 12. Contact + Intro Module */
.t13-contact-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.t13-contact-card,
.t13-intro-card {
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius);
    padding: 28px;
    transition: all 0.3s ease;
}
.t13-contact-card:hover,
.t13-intro-card:hover {
    border-color: var(--t13-border-glow);
    box-shadow: var(--t13-glow);
}
.t13-contact-card h3,
.t13-intro-card h3 {
    font-size: 1.15rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--t13-border);
    color: var(--t13-primary);
    text-shadow: var(--t13-glow);
}
.t13-contact-card p {
    margin-bottom: 10px;
    color: var(--t13-text-secondary);
}
.t13-intro-card p {
    color: var(--t13-text-secondary);
    line-height: 1.8;
}

/* 13. Product Grid */
.t13-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.t13-product-card {
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}
.t13-product-card:hover {
    border-color: var(--t13-border-glow);
    box-shadow: var(--t13-glow);
    transform: translateY(-6px);
}
.t13-product-img {
    display: block;
    overflow: hidden;
    position: relative;
}
.t13-product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--t13-bg-card), transparent 30%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.t13-product-card:hover .t13-product-img::after {
    opacity: 1;
}
.t13-product-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: brightness(0.85);
    transition: all 0.4s ease;
}
.t13-product-card:hover .t13-product-img img {
    filter: brightness(1);
    transform: scale(1.05);
}
.t13-product-body {
    padding: 18px;
}
.t13-product-name {
    font-size: 0.95rem;
    font-weight: 500;
}
.t13-product-name a {
    color: var(--t13-text);
}
.t13-product-name a:hover {
    color: var(--t13-primary);
    text-shadow: var(--t13-glow);
}
.t13-product-time {
    font-size: 0.8rem;
    color: var(--t13-text-light);
    margin-top: 8px;
}

/* 14. Information Module */
.t13-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.t13-info-card {
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius);
    padding: 28px;
    transition: all 0.3s ease;
}
.t13-info-card:hover {
    border-color: var(--t13-border-glow);
    box-shadow: var(--t13-glow);
}
.t13-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: var(--t13-primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--t13-border);
    text-shadow: var(--t13-glow);
}
.t13-info-card p {
    margin-bottom: 10px;
    color: var(--t13-text-secondary);
    font-size: 0.95rem;
}
.t13-info-card b {
    color: var(--t13-text);
}

/* 15. Information Table Layout */
.t13-info-table {
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius);
    padding: 28px;
}
.t13-info-table h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--t13-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--t13-border);
    text-shadow: var(--t13-glow);
}
.t13-info-table table {
    width: 100%;
}
.t13-info-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--t13-border);
}
.t13-info-table tr:last-child td {
    border-bottom: none;
}
.t13-info-table td:first-child {
    width: 140px;
    font-weight: 600;
    color: var(--t13-primary);
    background: rgba(0, 217, 255, 0.05);
    border-radius: var(--t13-radius-sm) 0 0 var(--t13-radius-sm);
}
.t13-info-table td:last-child {
    color: var(--t13-text-secondary);
}

/* 16. Message Form */
.t13-form-card {
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius);
    padding: 32px;
    max-width: 700px;
}
.t13-form-card h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--t13-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--t13-border);
    text-shadow: var(--t13-glow);
}
.t13-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.t13-form-group {
    margin-bottom: 20px;
}
.t13-form-group.full {
    grid-column: span 2;
}
.t13-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--t13-text);
}
.t13-input,
.t13-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius-sm);
    background: var(--t13-bg);
    font-size: 1rem;
    color: var(--t13-text);
    font-family: inherit;
    transition: all 0.25s ease;
}
.t13-input:focus,
.t13-textarea:focus {
    outline: none;
    border-color: var(--t13-primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15), var(--t13-glow);
    background: var(--t13-bg-card);
}
.t13-input::placeholder,
.t13-textarea::placeholder {
    color: var(--t13-text-light);
}
.t13-textarea {
    min-height: 140px;
    resize: vertical;
}

/* 17. Button */
.t13-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--t13-primary), var(--t13-primary-dark));
    color: var(--t13-text-inverse);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--t13-radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    text-shadow: none;
}
.t13-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--t13-glow-strong);
    color: var(--t13-text-inverse);
}

/* 18. Links Section */
.t13-links {
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius);
    padding: 20px 28px;
    font-size: 0.9rem;
}
.t13-links span {
    font-weight: 600;
    color: var(--t13-text);
    margin-right: 12px;
}
.t13-links a {
    color: var(--t13-text-secondary);
    margin-right: 16px;
}
.t13-links a:hover {
    color: var(--t13-primary);
    text-shadow: var(--t13-glow);
}

/* 19. Breadcrumb */
.t13-breadcrumb {
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius-sm);
    padding: 14px 22px;
    margin-bottom: 28px;
    font-size: 0.9rem;
}
.t13-breadcrumb a {
    color: var(--t13-text-secondary);
}
.t13-breadcrumb a:hover {
    color: var(--t13-primary);
}
.t13-breadcrumb .t13-sep {
    margin: 0 10px;
    color: var(--t13-text-light);
}
.t13-breadcrumb strong {
    color: var(--t13-primary);
    text-shadow: var(--t13-glow);
}

/* 20. Detail Card */
.t13-detail-card {
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius);
    padding: 32px;
}
.t13-detail-card h1 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--t13-border);
    color: var(--t13-text);
}
.t13-detail-img {
    margin-bottom: 28px;
    border-radius: var(--t13-radius-sm);
    overflow: hidden;
    border: 1px solid var(--t13-border);
}
.t13-detail-img img {
    width: 100%;
    display: block;
}
.t13-detail-content {
    color: var(--t13-text-secondary);
    line-height: 1.9;
}
.t13-detail-content img {
    max-width: 100%;
    border-radius: var(--t13-radius-sm);
    margin: 16px 0;
}
.t13-page-info {
    margin-top: 24px;
    padding: 14px 20px;
    background: var(--t13-bg);
    border: 1px solid var(--t13-border);
    border-left: 3px solid var(--t13-primary);
    border-radius: var(--t13-radius-sm);
    color: var(--t13-text-light);
    font-size: 0.85rem;
}

/* 21. Pagination */
.t13-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}
.t13-pagination a,
.t13-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius-sm);
    color: var(--t13-text-secondary);
    font-weight: 500;
    transition: all 0.25s ease;
}
.t13-pagination a:hover {
    color: var(--t13-primary);
    border-color: var(--t13-border-glow);
    box-shadow: var(--t13-glow);
}
.t13-pagination .active {
    background: var(--t13-primary);
    color: var(--t13-text-inverse);
    border-color: var(--t13-primary);
    box-shadow: var(--t13-glow);
}
.t13-pagination .disabled {
    color: var(--t13-text-light);
    opacity: 0.5;
    cursor: not-allowed;
}

/* 22. Footer */
.t13-footer {
    background: var(--t13-bg-card);
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid var(--t13-border);
}
.t13-footer-content {
    text-align: center;
}
.t13-footer-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.t13-footer-info p {
    color: var(--t13-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    padding: 8px 20px;
    background: var(--t13-bg);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius-sm);
}
.t13-footer-copyright {
    color: var(--t13-text-light);
    font-size: 0.85rem;
}
.t13-footer-copyright a {
    color: var(--t13-text-secondary);
    margin: 0 6px;
}
.t13-footer-copyright a:hover {
    color: var(--t13-primary);
}

/* 23. Error Page */
.t13-error {
    text-align: center;
    padding: 80px 20px;
}
.t13-error-card {
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius-lg);
    padding: 60px 40px;
    max-width: 500px;
    margin: 0 auto;
}
.t13-error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--t13-primary);
    line-height: 1;
    margin-bottom: 16px;
    text-shadow: var(--t13-glow-strong);
}
.t13-error-card h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--t13-text);
}
.t13-error-card p {
    color: var(--t13-text-secondary);
    margin-bottom: 28px;
}

/* 24. Sub Domain Styles */
.t13-sub-header {
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--t13-border);
}
.t13-sub-header .t13-header-inner {
    flex-wrap: wrap;
    gap: 16px;
}
.t13-sub-header .t13-logo {
    font-size: 1.3rem;
}
.t13-sub-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.t13-sub-nav a {
    padding: 8px 16px;
    background: var(--t13-bg-card);
    border: 1px solid var(--t13-border);
    border-radius: var(--t13-radius-sm);
    color: var(--t13-text-secondary);
    font-size: 0.9rem;
    transition: all 0.25s ease;
}
.t13-sub-nav a:hover {
    color: var(--t13-primary);
    border-color: var(--t13-border-glow);
    box-shadow: var(--t13-glow);
}

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

@media (max-width: 768px) {
    .t13-container {
        padding: 0 16px;
    }
    .t13-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .t13-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(9, 9, 11, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    .t13-menu-toggle:checked ~ .t13-nav {
        opacity: 1;
        visibility: visible;
    }
    .t13-menu-toggle:checked ~ .t13-menu-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .t13-menu-toggle:checked ~ .t13-menu-btn span:nth-child(2) {
        opacity: 0;
    }
    .t13-menu-toggle:checked ~ .t13-menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .t13-nav a {
        font-size: 1.1rem;
        padding: 14px 32px;
        background: var(--t13-bg-card);
        border: 1px solid var(--t13-border);
    }
    .t13-section {
        padding: 32px 0;
    }
    .t13-hero-single {
        height: 280px;
    }
    .t13-hero-grid {
        grid-template-columns: 1fr !important;
    }
    .t13-hero-item img {
        height: 180px;
    }
    .t13-contact-intro,
    .t13-info-grid {
        grid-template-columns: 1fr;
    }
    .t13-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .t13-product-img img {
        height: 140px;
    }
    .t13-detail-card {
        padding: 24px 20px;
    }
    .t13-detail-card h1 {
        font-size: 1.4rem;
    }
    .t13-form-row {
        grid-template-columns: 1fr;
    }
    .t13-form-group.full {
        grid-column: span 1;
    }
    .t13-footer-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .t13-logo {
        font-size: 1.2rem;
    }
    .t13-product-grid {
        grid-template-columns: 1fr;
    }
    .t13-section-title h2 {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
    .t13-pagination {
        gap: 6px;
        flex-wrap: wrap;
    }
    .t13-pagination a,
    .t13-pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
}
