/* 四川硕丰建材有限公司 - 企业官网样式 */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面加载状态 */
body.loading .hero,
body.loading .section,
body.loading .page-header {
    position: relative;
    min-height: 200px;
}

body.loading .hero > *,
body.loading .section > *,
body.loading .page-header > * {
    opacity: 0;
    transition: opacity 0.15s ease;
}

body.loading .hero::after,
body.loading .section::after,
body.loading .page-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--sky-wash);
    border-top-color: var(--signal-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.loaded .hero > *,
body.loaded .section > *,
body.loaded .page-header > * {
    opacity: 1;
}

body.loaded .hero::after,
body.loaded .section::after {
    display: none;
}

:root {
    /* 配色方案 */
    --canvas: #fcfcfc;
    --sky-wash: #f0f4fe;
    --midnight: #020520;
    --graphite: #14141e;
    --slate: #374151;
    --fog: #696a72;
    --deep-fog: #95959b;
    --steel: #6b7280;
    --signal-blue: #145aff;
    --action-blue: #0f1f3d;
    --emerald: #16ca2e;
    --coral: #f26052;
    --sky-info: #0099ff;
    --amber: #ffa64d;
    
    /* 渐变 */
    --hero-gradient: radial-gradient(97.8% 181.6% at 53.7% 50%, rgb(20, 20, 30) 0%, rgba(88, 107, 141, 0.8) 100%);
    --blue-gradient: linear-gradient(rgb(59, 130, 246) 0%, rgb(20, 90, 255) 100%);
    
    /* 阴影 */
    --shadow-card: rgba(0, 0, 0, 0.1) 0px 0px 4px -2px;
    --shadow-elevated: rgba(0, 0, 0, 0.25) 0px 0px 4px -2px;
    --shadow-feature: rgba(0, 0, 0, 0.082) 0px 0.36px 1.81px -1.42px, 
                      rgba(0, 0, 0, 0.07) 0px 1.37px 6.87px -2.83px, 
                      rgba(0, 0, 0, 0.016) 0px 6px 30px -4.25px;
    --shadow-blue-focus: rgba(20, 90, 255, 0.1) 0px 0px 50px -28px, 
                         rgba(0, 0, 0, 0.18) 0px 0px 3px -1px;
    --shadow-hero-ambient: rgba(20, 90, 255, 0.1) 0px 0px 100px -28px;
    
    /* 圆角 */
    --radius-pill: 100px;
    --radius-card: 8px;
    --radius-badge: 4px;
    --radius-image: 16px;
    --radius-input: 12px;
    --radius-modal: 32px;
    --radius-button: 12px;
    --radius-large-card: 40px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.43;
    letter-spacing: 0.06px;
    color: var(--graphite);
    background-color: var(--canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--midnight);
    line-height: 1.25;
}

h1 {
    font-size: 56px;
    letter-spacing: -1.51px;
    line-height: 1.05;
}

h2 {
    font-size: 40px;
    letter-spacing: -0.76px;
    line-height: 1.08;
}

h3 {
    font-size: 22px;
    letter-spacing: -0.22px;
}

h4 {
    font-size: 18px;
    letter-spacing: -0.16px;
}

p {
    color: var(--slate);
    line-height: 1.6;
}

a {
    color: var(--action-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--signal-blue);
}

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

/* Section */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--sky-wash);
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--fog);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(2px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--midnight);
}

.navbar-logo img {
    height: 40px;
}

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

.navbar-menu a {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    color: var(--slate);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-menu a:hover {
    background-color: var(--sky-wash);
    color: var(--midnight);
}

.navbar-menu a.active {
    background-color: var(--sky-wash);
    color: var(--midnight);
}

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border-radius: var(--radius-button);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.8);
    color: var(--action-blue);
    border: 1px solid var(--action-blue);
}

.btn-outline:hover {
    border-color: var(--midnight);
    color: var(--midnight);
    background: rgba(255, 255, 255, 1);
}

.btn-primary {
    background: var(--blue-gradient);
    color: #ffffff;
    font-weight: 600;
    padding: 15px 20px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue-focus);
}

.btn-ghost {
    background: var(--canvas);
    color: var(--signal-blue);
    border: 1px solid rgba(20, 90, 255, 0.3);
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    font-size: 16px;
}

.btn-ghost:hover {
    border-color: var(--signal-blue);
    background: rgba(240, 244, 254, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--hero-gradient);
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(88, 107, 141, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 56px;
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

/* Cards */
.card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 24px;
    transition: all 0.3s ease;
}

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

.card-large {
    background: var(--canvas);
    border-radius: var(--radius-large-card);
    box-shadow: var(--shadow-feature);
    padding: 52px 72px;
}

.card-glass {
    background: rgba(252, 252, 252, 0.2);
    border-radius: 28px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.product-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky-wash);
    border-radius: var(--radius-image);
    color: var(--signal-blue);
    font-size: 28px;
}

.product-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.product-card p {
    color: var(--fog);
    font-size: 14px;
    margin-bottom: 20px;
}

.product-card .btn-link {
    color: var(--action-blue);
    font-size: 14px;
    font-weight: 500;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.news-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-4px);
}

.news-image {
    width: 100%;
    height: 200px;
    background: var(--sky-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signal-blue);
    font-size: 48px;
}

.news-content {
    padding: 24px;
}

.news-date {
    color: var(--deep-fog);
    font-size: 12px;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    color: var(--fog);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Case Grid */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.case-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px;
    transition: all 0.3s ease;
}

.case-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-4px);
}

.case-logo {
    width: 60px;
    height: 60px;
    background: var(--sky-wash);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--signal-blue);
}

.case-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.case-card .case-company {
    color: var(--steel);
    font-size: 13px;
    margin-bottom: 16px;
}

.case-card p {
    color: var(--fog);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 24px;
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--sky-wash);
    border-radius: var(--radius-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signal-blue);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--fog);
    font-size: 14px;
}

.contact-form {
    background: #ffffff;
    border-radius: var(--radius-large-card);
    box-shadow: var(--shadow-feature);
    padding: 40px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--graphite);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cfcfcf;
    border-radius: var(--radius-input);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--canvas);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sky-info);
    box-shadow: rgba(0, 153, 255, 1) 0px 0px 0px 3px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 16px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--signal-blue);
    color: #ffffff;
}

/* Page Header */
.page-header {
    background: var(--hero-gradient);
    padding: 140px 24px 80px;
    text-align: center;
}

.page-header h1 {
    color: #ffffff;
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--fog);
}

.breadcrumb a {
    color: var(--fog);
}

.breadcrumb a:hover {
    color: var(--signal-blue);
}

.breadcrumb span {
    margin: 0 8px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    background: var(--sky-wash);
    border-radius: var(--radius-large-card);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--signal-blue);
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--slate);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sky-wash);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--signal-blue);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--canvas);
}

.timeline-year {
    color: var(--signal-blue);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.timeline-content h4 {
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--fog);
    font-size: 14px;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.value-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px;
    text-align: center;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--sky-wash);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signal-blue);
    font-size: 24px;
}

.value-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.value-card p {
    color: var(--fog);
    font-size: 14px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: var(--sky-wash);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--signal-blue);
}

.team-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.team-card .team-role {
    color: var(--signal-blue);
    font-size: 13px;
    margin-bottom: 12px;
}

.team-card p {
    color: var(--fog);
    font-size: 14px;
}

/* Detail Page */
.detail-content {
    background: #ffffff;
    border-radius: var(--radius-large-card);
    box-shadow: var(--shadow-feature);
    padding: 48px;
    margin-bottom: 40px;
}

.detail-content h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sky-wash);
}

.detail-meta span {
    color: var(--fog);
    font-size: 14px;
}

.detail-body {
    line-height: 1.8;
}

.detail-body p {
    margin-bottom: 16px;
    color: var(--slate);
}

.detail-body h2 {
    font-size: 24px;
    margin: 32px 0 16px;
}

.detail-body ul {
    margin: 16px 0;
    padding-left: 24px;
}

.detail-body li {
    margin-bottom: 8px;
    color: var(--slate);
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fog);
    font-size: 14px;
    margin-bottom: 24px;
}

.back-btn:hover {
    color: var(--signal-blue);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--midnight);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--canvas);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-elevated);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-cta {
        display: none;
    }
    
    .hero {
        padding: 120px 24px 60px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .product-grid,
    .news-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-left: 50px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .detail-content {
        padding: 24px;
    }
    
    .card-large {
        padding: 32px 24px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}
