/* ============================================
   Xuntengweiye English Site - Style
   ============================================ */

:root {
    --primary: #1a56db;
    --primary-dark: #1642b0;
    --primary-light: #e8f0fe;
    --accent: #f59e0b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --text-white: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
}

.logo span {
    color: var(--primary);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-nav {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 10px 24px !important;
}

.btn-nav:hover {
    background: var(--primary-dark) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,86,219,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(26,86,219,0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text);
}

.hero .highlight {
    color: var(--primary);
    position: relative;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,86,219,0.4);
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    padding: 60px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Products Section
   ============================================ */
.products {
    padding: 80px 0;
    background: var(--bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* ============================================
   Capabilities Section
   ============================================ */
.capabilities {
    padding: 80px 0;
    background: var(--bg-alt);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cap-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.cap-item:hover {
    box-shadow: var(--shadow);
}

.cap-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.cap-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   Why Us Section
   ============================================ */
.why-us {
    padding: 80px 0;
    background: var(--bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.benefit-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Page Header (Sub-pages)
   ============================================ */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Products Page - Product Detail Rows
   ============================================ */
.product-detail {
    padding: 40px 0;
}

.product-row {
    display: flex;
    gap: 48px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.product-row:last-child {
    border-bottom: none;
}

.product-row.reverse {
    flex-direction: row-reverse;
}

.product-img {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-img img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    flex: 1;
}

.product-tag {
    display: inline-block;
    background: rgba(245,158,11,0.15);
    color: #b45309;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-info > p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--text);
}

/* ============================================
   Capabilities Page - Process Cards
   ============================================ */
.process-section,
.equipment-section,
.materials-section {
    padding: 60px 0;
}

.equipment-section,
.materials-section {
    background: var(--bg-alt);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.process-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.process-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.process-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.process-step {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.process-card {
    position: relative;
}

.process-card h3 {
    padding: 16px 20px 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.process-card p {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.equipment-item,
.material-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.equipment-item:hover,
.material-item:hover {
    box-shadow: var(--shadow);
}

.equipment-item h4,
.material-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.equipment-item p,
.material-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ============================================
   About Page
   ============================================ */
.about-story {
    padding: 60px 0;
}

.story-content {
    display: flex;
    gap: 48px;
    align-items: center;
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.story-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.story-image {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-values,
.about-team,
.about-factory {
    padding: 60px 0;
}

.about-values,
.about-factory {
    background: var(--bg-alt);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.team-card:hover {
    box-shadow: var(--shadow);
}

.team-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.team-card h3 {
    padding: 16px 20px 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.team-card p {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.factory-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.factory-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.factory-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.factory-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.factory-info {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.factory-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.factory-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

.contact-form h2,
.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.form-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

.info-card {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.info-card a {
    color: var(--primary);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

.quick-quote {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(26,86,219,0.15);
}

.quick-quote h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.quick-quote p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.quick-quote ul {
    list-style: none;
}

.quick-quote li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text);
}

.map-section {
    padding: 0 0 60px;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
}

/* ============================================
   Responsive for sub-pages
   ============================================ */
@media (max-width: 968px) {
    .product-row,
    .product-row.reverse,
    .story-content {
        flex-direction: column;
        gap: 24px;
    }
    .process-grid,
    .team-grid,
    .factory-images,
    .equipment-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .materials-grid { grid-template-columns: repeat(2, 1fr); }
    .factory-details { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .page-header h1 { font-size: 1.8rem; }
    .product-info h2 { font-size: 1.3rem; }
    .process-grid,
    .team-grid,
    .factory-images,
    .equipment-grid,
    .values-grid { grid-template-columns: 1fr; }
    .materials-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .page-header { padding: 100px 0 40px; }
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: #fff;
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta .btn-primary:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 60px 0 0;
    background: var(--bg-dark);
    color: var(--text-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h4,
.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.footer-about p,
.footer-contact p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.7;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-white);
    opacity: 0.8;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 968px) {
    .hero h1 { font-size: 2.2rem; }
    .product-grid,
    .capabilities-grid,
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .stats .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #fff;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-menu.active { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 1.8rem; }
    .product-grid,
    .capabilities-grid,
    .benefits-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn { text-align: center; }
    .section-header h2 { font-size: 1.6rem; }
}

/* 中英文切换按钮 - 英文站 */
.lang-switch a {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border: 2px solid var(--primary) !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    transition: all 0.2s;
}
.lang-switch a:hover {
    background: var(--primary) !important;
    color: #fff !important;
}
