/* ========================================
   Theme17 - Corporate Pro Design
   Professional, trustworthy, enterprise-grade
   ======================================== */

/* 1. CSS Custom Properties */
:root {
    --t17-primary: #1E40AF;
    --t17-primary-light: #3B82F6;
    --t17-primary-dark: #1E3A8A;
    --t17-secondary: #0F766E;
    --t17-accent: #F59E0B;
    --t17-text: #1F2937;
    --t17-text-secondary: #4B5563;
    --t17-text-light: #9CA3AF;
    --t17-text-inverse: #FFFFFF;
    --t17-bg: #F8FAFC;
    --t17-bg-alt: #FFFFFF;
    --t17-bg-dark: #1E293B;
    --t17-border: #E2E8F0;
    --t17-border-dark: #CBD5E1;
    --t17-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --t17-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --t17-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --t17-radius: 8px;
    --t17-radius-sm: 6px;
    --t17-radius-lg: 12px;
    --t17-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --t17-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(--t17-font);
    color: var(--t17-text);
    background: var(--t17-bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--t17-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--t17-primary-dark);
}
ul, ol {
    list-style: none;
}
table {
    border-collapse: collapse;
    width: 100%;
}

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

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

/* 5. Header */
.t17-header {
    background: var(--t17-bg-alt);
    border-bottom: 1px solid var(--t17-border);
    height: var(--t17-header-h);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--t17-shadow-sm);
}
.t17-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.t17-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--t17-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.t17-logo:hover {
    color: var(--t17-primary-dark);
}

/* 6. Navigation */
.t17-nav {
    display: flex;
    gap: 4px;
}
.t17-nav ul {
    display: contents;
}
.t17-nav li {
    list-style: none;
}
.t17-nav a {
    padding: 10px 18px;
    color: var(--t17-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--t17-radius-sm);
    transition: all 0.2s ease;
}
.t17-nav a:hover {
    color: var(--t17-primary);
    background: rgba(30, 64, 175, 0.08);
}
.t17-nav a.active {
    color: var(--t17-text-inverse);
    background: var(--t17-primary);
}

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

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

/* 9. Hero / Banner */
.t17-hero {
    margin-bottom: 48px;
}
.t17-hero-single {
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: var(--t17-radius-lg);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--t17-shadow-lg);
}
.t17-hero-single::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.85), rgba(30, 58, 138, 0.7));
}
.t17-hero-single a {
    position: relative;
    z-index: 1;
    color: var(--t17-text-inverse);
    font-size: 1.75rem;
    font-weight: 600;
    max-width: 60%;
    line-height: 1.3;
}
.t17-hero-single a:hover {
    color: var(--t17-accent);
}
.t17-hero-grid {
    display: grid;
    gap: 20px;
}
.t17-hero-grid.row-1 { grid-template-columns: 1fr; }
.t17-hero-grid.row-2 { grid-template-columns: repeat(2, 1fr); }
.t17-hero-grid.row-3 { grid-template-columns: repeat(3, 1fr); }
.t17-hero-grid.row-4 { grid-template-columns: repeat(4, 1fr); }
.t17-hero-item {
    border-radius: var(--t17-radius);
    overflow: hidden;
    background: var(--t17-bg-alt);
    border: 1px solid var(--t17-border);
    box-shadow: var(--t17-shadow);
    transition: all 0.25s ease;
}
.t17-hero-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--t17-shadow-lg);
    border-color: var(--t17-primary-light);
}
.t17-hero-item a {
    display: block;
}
.t17-hero-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.t17-hero-item span {
    display: block;
    padding: 16px;
    color: var(--t17-text);
    font-weight: 500;
    font-size: 0.95rem;
}

/* 10. Section Title */
.t17-section-title {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--t17-border);
}
.t17-section-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--t17-text);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.t17-section-title h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--t17-primary);
    border-radius: 2px;
}
.t17-section-title h2 a {
    color: inherit;
}
.t17-section-title h2 a:hover {
    color: var(--t17-primary);
}

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

/* 12. Contact + Intro Module */
.t17-contact-intro {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}
.t17-contact-card,
.t17-intro-card {
    background: var(--t17-bg-alt);
    border-radius: var(--t17-radius);
    padding: 28px;
    border: 1px solid var(--t17-border);
    box-shadow: var(--t17-shadow-sm);
}
.t17-contact-card h3,
.t17-intro-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--t17-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--t17-border);
}
.t17-contact-card p {
    margin-bottom: 12px;
    color: var(--t17-text-secondary);
    font-size: 0.95rem;
    display: flex;
    gap: 8px;
}
.t17-intro-card p {
    color: var(--t17-text-secondary);
    line-height: 1.8;
}

/* 13. Product Grid */
.t17-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.t17-product-card {
    background: var(--t17-bg-alt);
    border-radius: var(--t17-radius);
    overflow: hidden;
    border: 1px solid var(--t17-border);
    box-shadow: var(--t17-shadow-sm);
    transition: all 0.25s ease;
}
.t17-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t17-shadow-lg);
    border-color: var(--t17-primary-light);
}
.t17-product-img {
    display: block;
    overflow: hidden;
}
.t17-product-img img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.t17-product-card:hover .t17-product-img img {
    transform: scale(1.05);
}
.t17-product-body {
    padding: 16px;
}
.t17-product-name {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}
.t17-product-name a {
    color: var(--t17-text);
}
.t17-product-name a:hover {
    color: var(--t17-primary);
}
.t17-product-time {
    font-size: 0.8rem;
    color: var(--t17-text-light);
    margin-top: 8px;
}

/* 14. Information Module */
.t17-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.t17-info-card {
    background: var(--t17-bg-alt);
    border-radius: var(--t17-radius);
    padding: 28px;
    border: 1px solid var(--t17-border);
    box-shadow: var(--t17-shadow-sm);
}
.t17-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--t17-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--t17-border);
}
.t17-info-card p {
    margin-bottom: 12px;
    color: var(--t17-text-secondary);
    font-size: 0.95rem;
}
.t17-info-card b {
    color: var(--t17-text);
    font-weight: 500;
}

/* 15. Information Table Layout */
.t17-info-table {
    background: var(--t17-bg-alt);
    border-radius: var(--t17-radius);
    padding: 28px;
    border: 1px solid var(--t17-border);
    box-shadow: var(--t17-shadow-sm);
}
.t17-info-table h3 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--t17-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--t17-border);
}
.t17-info-table table {
    width: 100%;
}
.t17-info-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--t17-border);
    font-size: 0.95rem;
}
.t17-info-table tr:last-child td {
    border-bottom: none;
}
.t17-info-table td:first-child {
    width: 130px;
    font-weight: 500;
    color: var(--t17-text);
    background: var(--t17-bg);
}
.t17-info-table td:last-child {
    color: var(--t17-text-secondary);
}

/* 16. Message Form */
.t17-form-card {
    background: var(--t17-bg-alt);
    border-radius: var(--t17-radius);
    padding: 32px;
    border: 1px solid var(--t17-border);
    box-shadow: var(--t17-shadow-sm);
    max-width: 680px;
}
.t17-form-card h3 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--t17-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--t17-border);
}
.t17-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.t17-form-group {
    margin-bottom: 20px;
}
.t17-form-group.full {
    grid-column: span 2;
}
.t17-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--t17-text);
    font-size: 0.9rem;
}
.t17-input,
.t17-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--t17-border);
    border-radius: var(--t17-radius-sm);
    background: var(--t17-bg);
    font-size: 0.95rem;
    color: var(--t17-text);
    font-family: inherit;
    transition: all 0.2s ease;
}
.t17-input:focus,
.t17-textarea:focus {
    outline: none;
    border-color: var(--t17-primary);
    background: var(--t17-bg-alt);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.t17-textarea {
    min-height: 140px;
    resize: vertical;
}

/* 17. Button */
.t17-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--t17-primary);
    color: var(--t17-text-inverse);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--t17-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.t17-btn:hover {
    background: var(--t17-primary-dark);
    color: var(--t17-text-inverse);
}

/* 18. Links Section */
.t17-links {
    background: var(--t17-bg-alt);
    border-radius: var(--t17-radius);
    padding: 18px 24px;
    border: 1px solid var(--t17-border);
    font-size: 0.9rem;
}
.t17-links span {
    font-weight: 500;
    color: var(--t17-text);
    margin-right: 16px;
}
.t17-links a {
    color: var(--t17-text-secondary);
    margin-right: 18px;
}
.t17-links a:hover {
    color: var(--t17-primary);
}

/* 19. Breadcrumb */
.t17-breadcrumb {
    background: var(--t17-bg-alt);
    border-radius: var(--t17-radius-sm);
    padding: 12px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--t17-border);
    font-size: 0.9rem;
}
.t17-breadcrumb a {
    color: var(--t17-text-secondary);
}
.t17-breadcrumb a:hover {
    color: var(--t17-primary);
}
.t17-breadcrumb .t17-sep {
    margin: 0 10px;
    color: var(--t17-text-light);
}
.t17-breadcrumb strong {
    color: var(--t17-text);
    font-weight: 500;
}

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

/* 21. Pagination */
.t17-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}
.t17-pagination a,
.t17-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--t17-bg-alt);
    border: 1px solid var(--t17-border);
    border-radius: var(--t17-radius-sm);
    color: var(--t17-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.t17-pagination a:hover {
    border-color: var(--t17-primary);
    color: var(--t17-primary);
}
.t17-pagination .active {
    background: var(--t17-primary);
    border-color: var(--t17-primary);
    color: var(--t17-text-inverse);
}
.t17-pagination .disabled {
    color: var(--t17-text-light);
    opacity: 0.6;
    cursor: not-allowed;
}

/* 22. Footer */
.t17-footer {
    background: var(--t17-bg-dark);
    padding: 40px 0;
    margin-top: auto;
}
.t17-footer-content {
    text-align: center;
}
.t17-footer-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.t17-footer-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}
.t17-footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.t17-footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 6px;
}
.t17-footer-copyright a:hover {
    color: var(--t17-text-inverse);
}

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

/* 24. Sub Domain Styles */
.t17-sub-header {
    background: var(--t17-bg-alt);
    padding: 16px 0;
    border-bottom: 1px solid var(--t17-border);
}
.t17-sub-header .t17-header-inner {
    flex-wrap: wrap;
    gap: 16px;
}
.t17-sub-header .t17-logo {
    font-size: 1.25rem;
}
.t17-sub-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.t17-sub-nav a {
    padding: 8px 16px;
    background: var(--t17-bg);
    border: 1px solid var(--t17-border);
    border-radius: var(--t17-radius-sm);
    color: var(--t17-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.t17-sub-nav a:hover {
    border-color: var(--t17-primary);
    color: var(--t17-primary);
}

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

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

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