/* ============================
   丰泉钢结构有限公司 - 官网样式
   ============================ */

:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2440;
    --accent: #c8a45c;
    --accent-light: #d4b97a;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border: #e8e8e8;
    --shadow: 0 4px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* ---- 导航栏 ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition);
    padding: 15px 0;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 8px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: auto;
    transition: all var(--transition);
}

.navbar:not(.scrolled) .logo-img {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.footer-logo-img {
    height: 55px;
    width: auto;
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all var(--transition);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}
.nav-phone-numbers {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}
.nav-phone-numbers a {
    color: inherit;
    text-decoration: none;
}
.nav-phone-numbers a:hover {
    color: var(--accent);
}

.navbar.scrolled .nav-phone {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
    background: var(--text);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2440 40%, #162d50 70%, #1a3a5c 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200,164,92,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(200,164,92,0.1) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.03) 80px, rgba(255,255,255,0.03) 81px),
        repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,0.03) 80px, rgba(255,255,255,0.03) 81px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title-line {
    display: block;
}

.hero-title-line.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: rgba(255,255,255,0.7);
    margin-bottom: 50px;
    letter-spacing: 4px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: 42px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.stat-suffix {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,164,92,0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.btn-full {
    width: 100%;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* ---- Section Common ---- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-line {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
}

.section-desc {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 15px;
}

/* ---- About ---- */
.about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: #fff;
    padding: 20px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.badge-num {
    display: block;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    font-size: 13px;
    opacity: 0.9;
}

.about-content h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-lead {
    font-size: 17px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ---- Services ---- */
.services-section {
    background: #fff;
}

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

.service-card {
    padding: 40px 30px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.service-arrow {
    margin-top: 20px;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Projects ---- */
.projects {
    background: var(--bg-light);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 30px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

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

.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.project-img {
    height: 220px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 6px;
}

.project-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- Advantages ---- */
.advantages {
    background: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.advantage-card {
    padding: 40px 25px;
    border-radius: var(--radius);
    background: var(--bg-light);
    text-align: center;
    transition: all var(--transition);
}

.advantage-card:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.advantage-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.advantage-card:hover h3 {
    color: #fff;
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.advantage-card:hover p {
    color: rgba(255,255,255,0.7);
}

/* Process */
.process {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 50px 40px;
}

.process-title {
    text-align: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 40px;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.process-step {
    text-align: center;
    flex: 0 0 130px;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.process-step h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 6px;
}

.process-step p {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.process-line {
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin-top: 25px;
}

/* ---- Equipment ---- */
.equipment {
    background: #fff;
}

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

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

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.equipment-img {
    height: 200px;
    overflow: hidden;
}

.equipment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipment-card:hover .equipment-img img {
    transform: scale(1.05);
}

.equipment-info {
    padding: 24px;
}

.equipment-info h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.equipment-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ---- Spirit ---- */
.spirit {
    padding: 0;
}

.spirit-bg {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2440 50%, #162d50 100%);
    padding: 100px 0;
    position: relative;
}

.spirit-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(200,164,92,0.1) 0%, transparent 60%);
}

.spirit-content {
    position: relative;
    text-align: center;
}

.spirit-text {
    font-size: clamp(24px, 4vw, 36px);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
}

.spirit-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 50px;
}

.spirit-values {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.spirit-value {
    text-align: center;
}

.spirit-value h4 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.spirit-value p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* ---- Contact ---- */
.contact {
    background: #fff;
}

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

.contact-info h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
}

.contact-desc {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(200,164,92,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-item h4 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-form-wrap h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    transition: border-color var(--transition);
    outline: none;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

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

.footer-about p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-logo .logo-cn {
    color: #fff;
}

.footer-logo .logo-en {
    color: rgba(255,255,255,0.5);
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-qrcode {
    margin-top: 16px;
}

.qrcode-placeholder {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qrcode-placeholder span {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(200,164,92,0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    .process-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-phone {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    .nav-links.open a {
        color: var(--text);
        padding: 10px;
    }
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    .stat-num {
        font-size: 28px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-img {
        height: 300px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .spirit-values {
        flex-direction: column;
        gap: 30px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
