/* ============================================
   Theme7 - Fullscreen Parallax Scroll Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --t7-primary: #6366F1;
    --t7-primary-dark: #4F46E5;
    --t7-primary-light: #818CF8;
    --t7-accent: #F59E0B;
    --t7-bg-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --t7-bg-section-1: #ffffff;
    --t7-bg-section-2: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --t7-bg-section-3: #f8fafc;
    --t7-bg-section-4: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --t7-text: #1e293b;
    --t7-text-secondary: #64748b;
    --t7-text-on-dark: #f1f5f9;
    --t7-text-on-color: #ffffff;
    --t7-bg-body: #0f172a;
    --t7-bg-card: #ffffff;
    --t7-border: #e2e8f0;
    --t7-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --t7-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.2);
    --t7-radius: 8px;
    --t7-radius-lg: 16px;
    --t7-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --t7-footer-bg: #0f172a;
    --t7-header-h: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; font-size: 16px; }
body { font-family: var(--t7-font); color: var(--t7-text); background: var(--t7-bg-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--t7-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--t7-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; }

/* --- Container --- */
.t7-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* --- Header / Navigation --- */
.t7-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--t7-header-h); display: flex; align-items: center; background: rgba(15, 23, 42, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background 0.3s; border-bottom: 1px solid rgba(255,255,255,0.08); }
.t7-header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.t7-logo { font-size: 1.25rem; font-weight: 700; color: var(--t7-text-on-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.t7-logo:hover { color: var(--t7-accent); }
.t7-nav { display: flex; gap: 4px; align-items: center; }
.t7-nav a { color: rgba(255,255,255,0.85); padding: 6px 14px; border-radius: 6px; font-size: 0.9rem; transition: all 0.3s; white-space: nowrap; }
.t7-nav a:hover, .t7-nav a.active { color: #fff; background: rgba(255,255,255,0.15); }

/* Mobile menu (CSS-only checkbox hack) */
.t7-menu-toggle { display: none; }
.t7-menu-btn { display: none; width: 36px; height: 36px; cursor: pointer; position: relative; flex-shrink: 0; }
.t7-menu-btn span, .t7-menu-btn span::before, .t7-menu-btn span::after { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; position: absolute; left: 6px; transition: all 0.3s; }
.t7-menu-btn span { top: 17px; }
.t7-menu-btn span::before { content: ''; top: -7px; }
.t7-menu-btn span::after { content: ''; top: 7px; }
.t7-menu-toggle:checked ~ .t7-menu-btn span { background: transparent; }
.t7-menu-toggle:checked ~ .t7-menu-btn span::before { top: 0; transform: rotate(45deg); }
.t7-menu-toggle:checked ~ .t7-menu-btn span::after { top: 0; transform: rotate(-45deg); }

/* Inner page solid header */
.t7-header-solid { background: rgba(15, 23, 42, 0.95); }

/* --- Fullscreen Section --- */
.t7-fullscreen { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; scroll-snap-align: start; overflow: hidden; }

/* --- Hero Section --- */
.t7-hero { background: var(--t7-bg-hero); padding: calc(var(--t7-header-h) + 40px) 0 60px; }
.t7-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); z-index: 1; }
.t7-hero-parallax { position: absolute; inset: 0; background-attachment: fixed; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0; }
.t7-hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 900px; margin: 0 auto; }
.t7-hero-title { font-size: 3rem; font-weight: 800; color: var(--t7-text-on-color); margin-bottom: 16px; letter-spacing: -0.02em; line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.t7-hero-subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; line-height: 1.6; }
.t7-hero-products { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.t7-hero-product-item { width: 200px; border-radius: var(--t7-radius); overflow: hidden; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); transition: transform 0.3s, box-shadow 0.3s; }
.t7-hero-product-item:hover { transform: translateY(-4px); box-shadow: var(--t7-shadow-lg); }
.t7-hero-product-item img { width: 100%; height: 150px; object-fit: cover; }
.t7-hero-product-item .t7-hero-product-name { padding: 10px; color: var(--t7-text-on-color); font-size: 0.85rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t7-hero-single { width: 100%; max-height: 60vh; border-radius: var(--t7-radius-lg); overflow: hidden; margin-top: 40px; box-shadow: var(--t7-shadow-lg); }
.t7-hero-single img { width: 100%; height: 100%; object-fit: cover; }

/* --- Section Styles --- */
.t7-section { padding: 80px 0; position: relative; }
.t7-section-light { background: var(--t7-bg-section-1); color: var(--t7-text); }
.t7-section-alt { background: var(--t7-bg-section-3); color: var(--t7-text); }
.t7-section-colored { background: var(--t7-bg-section-2); color: var(--t7-text-on-color); }
.t7-section-dark { background: var(--t7-bg-section-4); color: var(--t7-text-on-dark); }
.t7-section-colored a, .t7-section-dark a { color: var(--t7-accent); }
.t7-section-colored a:hover, .t7-section-dark a:hover { color: #fbbf24; }

/* Fullscreen section variants */
.t7-section.t7-fullscreen { padding: 0; }
.t7-section.t7-fullscreen > .t7-container { padding-top: 60px; padding-bottom: 60px; width: 100%; }

/* Section title */
.t7-section-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.t7-section-subtitle { font-size: 1rem; margin-bottom: 48px; opacity: 0.7; }
.t7-section-colored .t7-section-title, .t7-section-dark .t7-section-title { color: var(--t7-text-on-color); }

/* --- Inner Page Hero Banner --- */
.t7-page-hero { background: var(--t7-bg-hero); padding: calc(var(--t7-header-h) + 60px) 0 60px; text-align: center; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.t7-page-hero-title { font-size: 2.25rem; font-weight: 700; color: var(--t7-text-on-color); margin-bottom: 8px; }
.t7-page-hero-breadcrumb { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.t7-page-hero-breadcrumb a { color: rgba(255,255,255,0.8); }
.t7-page-hero-breadcrumb a:hover { color: var(--t7-accent); }

/* --- Content Card --- */
.t7-content-card { background: var(--t7-bg-card); border-radius: var(--t7-radius-lg); box-shadow: var(--t7-shadow); padding: 48px; margin: -40px auto 40px; position: relative; z-index: 2; max-width: 1000px; }
.t7-content-card p { margin-bottom: 12px; color: var(--t7-text); line-height: 1.8; }
.t7-content-card b { color: var(--t7-text); }
.t7-content-card .t7-info-tip { color: var(--t7-text-secondary); font-size: 0.85rem; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--t7-border); }

/* --- Contact & Introduction Combined --- */
.t7-contact-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.t7-contact-block h3, .t7-intro-block h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.t7-contact-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; gap: 12px; }
.t7-section-light .t7-contact-item { border-bottom-color: var(--t7-border); }
.t7-contact-label { font-weight: 600; min-width: 60px; flex-shrink: 0; }
.t7-intro-text { line-height: 1.9; opacity: 0.9; }

/* --- Product Grid --- */
.t7-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t7-product-card { background: var(--t7-bg-card); border-radius: var(--t7-radius); overflow: hidden; box-shadow: var(--t7-shadow); transition: transform 0.3s, box-shadow 0.3s; }
.t7-product-card:hover { transform: translateY(-6px); box-shadow: var(--t7-shadow-lg); }
.t7-product-card-img { width: 100%; height: 200px; object-fit: cover; }
.t7-product-card-body { padding: 16px; }
.t7-product-card-name { font-weight: 600; font-size: 0.95rem; color: var(--t7-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.t7-product-card-name:hover { color: var(--t7-primary); }
.t7-product-card-time { font-size: 0.8rem; color: var(--t7-text-secondary); }

/* On colored/dark backgrounds */
.t7-section-colored .t7-product-card, .t7-section-dark .t7-product-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); }
.t7-section-colored .t7-product-card-name, .t7-section-dark .t7-product-card-name { color: var(--t7-text-on-color); }
.t7-section-colored .t7-product-card-time, .t7-section-dark .t7-product-card-time { color: rgba(255,255,255,0.6); }

/* --- Information Table --- */
.t7-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.t7-info-col h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--t7-primary); display: inline-block; }
.t7-section-colored .t7-info-col h3, .t7-section-dark .t7-info-col h3 { border-bottom-color: var(--t7-accent); }
.t7-info-col p { margin-bottom: 10px; line-height: 1.8; }
.t7-info-table { width: 100%; border-collapse: collapse; }
.t7-info-table th, .t7-info-table td { padding: 14px 20px; text-align: left; border: 1px solid var(--t7-border); }
.t7-info-table th { background: var(--t7-primary); color: var(--t7-text-on-color); font-weight: 600; }
.t7-info-table td { background: var(--t7-bg-card); }
.t7-info-table td p { margin-bottom: 6px; }
.t7-section-colored .t7-info-table th { background: rgba(255,255,255,0.2); }
.t7-section-colored .t7-info-table td { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: var(--t7-text-on-color); }
.t7-section-dark .t7-info-table th { background: rgba(255,255,255,0.15); }
.t7-section-dark .t7-info-table td { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: var(--t7-text-on-dark); }

/* --- Button --- */
.t7-btn { display: inline-block; padding: 12px 32px; font-size: 1rem; font-weight: 600; border-radius: 50px; border: none; cursor: pointer; transition: all 0.3s; text-align: center; }
.t7-btn-primary { background: var(--t7-primary); color: var(--t7-text-on-color); }
.t7-btn-primary:hover { background: var(--t7-primary-dark); color: var(--t7-text-on-color); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }
.t7-btn-accent { background: var(--t7-accent); color: #1e293b; }
.t7-btn-accent:hover { background: #d97706; color: #1e293b; transform: translateY(-2px); }

/* --- Links Section --- */
.t7-links { padding: 24px 0; background: rgba(15, 23, 42, 0.95); color: var(--t7-text-on-dark); font-size: 0.85rem; }
.t7-links span { margin-right: 8px; }
.t7-links a { color: rgba(255,255,255,0.6); margin: 0 6px; font-size: 0.85rem; }
.t7-links a:hover { color: var(--t7-accent); }

/* --- Footer --- */
.t7-footer { background: var(--t7-footer-bg); padding: 48px 0 32px; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.t7-footer-inner { text-align: center; }
.t7-footer-info { margin-bottom: 12px; }
.t7-footer-info span { margin: 0 12px; }
.t7-footer a { color: rgba(255,255,255,0.6); }
.t7-footer a:hover { color: var(--t7-accent); }
.t7-footer-copyright { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }

/* --- Pagination --- */
.t7-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.t7-pagination a, .t7-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--t7-radius); font-size: 0.9rem; transition: all 0.3s; }
.t7-pagination a { background: var(--t7-bg-card); color: var(--t7-text); border: 1px solid var(--t7-border); }
.t7-pagination a:hover { background: var(--t7-primary); color: var(--t7-text-on-color); border-color: var(--t7-primary); }
.t7-pagination span { background: var(--t7-primary); color: var(--t7-text-on-color); font-weight: 600; }

/* --- Form Styles (base) --- */
.t7-form { max-width: 700px; margin: 0 auto; }
.t7-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.t7-form-group { margin-bottom: 20px; }
.t7-form-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.t7-form-input, .t7-form-textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--t7-border); border-radius: var(--t7-radius); font-size: 0.95rem; font-family: var(--t7-font); transition: border-color 0.3s; background: var(--t7-bg-card); color: var(--t7-text); }
.t7-form-input:focus, .t7-form-textarea:focus { outline: none; border-color: var(--t7-primary); }
.t7-form-textarea { min-height: 140px; resize: vertical; }
.t7-form-submit { width: 100%; padding: 14px; font-size: 1rem; }
/* Dark bg form */
.t7-section-dark .t7-form-input, .t7-section-dark .t7-form-textarea { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: var(--t7-text-on-dark); }
.t7-section-dark .t7-form-input:focus, .t7-section-dark .t7-form-textarea:focus { border-color: var(--t7-accent); }
.t7-section-dark .t7-form-label { color: var(--t7-text-on-dark); }
.t7-section-colored .t7-form-input, .t7-section-colored .t7-form-textarea { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: var(--t7-text-on-color); }
.t7-section-colored .t7-form-input:focus, .t7-section-colored .t7-form-textarea:focus { border-color: var(--t7-accent); }
.t7-section-colored .t7-form-label { color: var(--t7-text-on-color); }

/* --- Breadcrumb --- */
.t7-breadcrumb { padding: 20px 0; font-size: 0.9rem; color: var(--t7-text-secondary); }
.t7-breadcrumb a { color: var(--t7-primary); }
.t7-breadcrumb .t7-sep { margin: 0 8px; color: var(--t7-text-secondary); }

/* --- Product Detail --- */
.t7-detail-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 20px; color: var(--t7-text); }
.t7-detail-img { width: 100%; border-radius: var(--t7-radius); margin-bottom: 24px; }
.t7-detail-content { line-height: 1.9; color: var(--t7-text); }
.t7-detail-content img { max-width: 100%; border-radius: var(--t7-radius); margin: 16px 0; }
.t7-detail-meta { font-size: 0.85rem; color: var(--t7-text-secondary); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--t7-border); }
.t7-detail-meta p { margin-bottom: 4px; }

/* --- Error Page --- */
.t7-error { min-height: 60vh; display: flex; align-items: center; justify-content: center; background: var(--t7-bg-section-1); }
.t7-error-content { text-align: center; }
.t7-error-code { font-size: 8rem; font-weight: 800; color: var(--t7-primary); line-height: 1; opacity: 0.3; }
.t7-error-text { font-size: 1.25rem; color: var(--t7-text-secondary); margin: 16px 0 32px; }

/* --- Utility --- */
.t7-text-center { text-align: center; }
.t7-mt-40 { margin-top: 40px; }
.t7-mb-24 { margin-bottom: 24px; }

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1024px) {
    .t7-product-grid { grid-template-columns: repeat(2, 1fr); }
    .t7-hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* Mobile nav */
    .t7-menu-btn { display: block; }
    .t7-nav { display: none; position: fixed; top: var(--t7-header-h); left: 0; right: 0; background: rgba(15, 23, 42, 0.98); flex-direction: column; padding: 16px; gap: 4px; backdrop-filter: blur(12px); }
    .t7-menu-toggle:checked ~ .t7-nav { display: flex; }
    .t7-nav a { padding: 12px 16px; font-size: 1rem; }

    /* Fullscreen sections become auto height on mobile */
    .t7-fullscreen { min-height: auto; }
    html { scroll-snap-type: none; }

    .t7-hero { padding: calc(var(--t7-header-h) + 24px) 0 40px; }
    .t7-hero-title { font-size: 2rem; }
    .t7-hero-subtitle { font-size: 1rem; }
    .t7-hero-products { gap: 12px; }
    .t7-hero-product-item { width: 140px; }
    .t7-hero-product-item img { height: 100px; }

    .t7-section { padding: 48px 0; }
    .t7-section-title { font-size: 1.75rem; }

    .t7-contact-intro { grid-template-columns: 1fr; gap: 32px; }
    .t7-info-grid { grid-template-columns: 1fr; gap: 32px; }
    .t7-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .t7-content-card { padding: 24px; margin: -24px 16px 24px; }
    .t7-page-hero { padding: calc(var(--t7-header-h) + 32px) 0 40px; min-height: 160px; }
    .t7-page-hero-title { font-size: 1.75rem; }

    .t7-form-row { grid-template-columns: 1fr; }

    .t7-detail-header h1 { font-size: 1.35rem; }
    .t7-error-code { font-size: 5rem; }
}

@media (max-width: 480px) {
    .t7-product-grid { grid-template-columns: 1fr; }
    .t7-hero-title { font-size: 1.6rem; }
    .t7-hero-product-item { width: 120px; }
    .t7-hero-product-item img { height: 80px; }
    .t7-container { padding: 0 16px; }
}
