/* ========================================
   Theme 15 - 阿莱克斯官网主题
   风格：简约、专业、福州家族企业
   ======================================== */

/* ===== Base Styles ===== */
:root {
    --primary: #c41e3a;      /* 砖红色 - 温暖、可靠 */
    --primary-light: #dc2626;
    --primary-dark: #991b1b;
    --secondary: #f59e0b;     /* 暖金色 - 品质 */
    --dark: #1f2937;          /* 深灰 - 正文 */
    --dark-light: #4b5563;    /* 中灰 - 次要文字 */
    --gray: #6b7280;          /* 浅灰 - 辅助文字 */
    --gray-light: #f3f4f6;    /* 极浅灰 - 背景 */
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.75;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    font-size: 16px;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.3);
}

.btn-lg {
    padding: 14px 40px;
    font-size: 17px;
}

.btn-header {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    font-size: 15px;
}

.btn-header:hover {
    background: var(--primary-dark);
}

.btn-full {
    width: 100%;
}

.btn-outline.dark {
    border: 2px solid var(--dark);
    color: var(--dark);
    background: transparent;
}

.btn-outline.dark:hover {
    background: var(--dark);
    color: var(--white);
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

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

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-light);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(196, 30, 58, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 50%, #fff7ed 100%);
    overflow: hidden;
    margin-top: 70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(196,30,58,0.03)"/><circle cx="20" cy="80" r="30" fill="rgba(245,158,11,0.03)"/></svg>');
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(196, 30, 58, 0.1);
    border-radius: 100px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hero-desc {
    font-size: 16px;
    color: var(--dark-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

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

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

.section-header {
    max-width: 600px;
    margin-bottom: 40px;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(196, 30, 58, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 12px;
}

.section-title.white {
    color: var(--white);
}

.section-desc {
    font-size: 15px;
    color: var(--dark-light);
    line-height: 1.8;
}

.section-desc.white {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Home Post Section ===== */
.home-post-section {
    background: var(--white);
    padding: 80px 0;
}

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

.home-post-cover {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.home-post-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.home-post-cover:hover img {
    transform: scale(1.05);
}

.home-post-content {
    padding: 20px 0;
}

.home-post-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 16px 0;
    line-height: 1.3;
}

.home-post-intro {
    font-size: 1.1rem;
    color: var(--dark-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.home-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    color: var(--gray);
    font-size: 0.95rem;
}

.home-post-meta i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .home-post-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .home-post-title {
        font-size: 1.5rem;
    }
}

/* ===== About Section ===== */
.about-section {
    background: var(--white);
}

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

.about-features {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--dark-light);
}

.feature-item i {
    color: var(--primary);
    font-size: 18px;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--gray-light) 0%, #e5e7eb 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    gap: 16px;
}

.image-placeholder i {
    font-size: 48px;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 14px;
    font-style: italic;
}

/* ===== Services Section ===== */
.services-section {
    background: var(--gray-light);
}

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

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 36px 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-align: center;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.service-icon i {
    font-size: 24px;
    color: var(--primary);
}

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

.service-card p {
    font-size: 15px;
    color: var(--dark-light);
    line-height: 1.7;
}

.service-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== News Section ===== */
.news-section {
    background: var(--white);
}

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

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

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

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

.news-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--gray-light) 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.news-image-placeholder i {
    font-size: 48px;
    opacity: 0.5;
}

.news-content {
    padding: 24px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-date {
    font-size: 13px;
    color: var(--gray);
}

.news-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== Philosophy Section ===== */
.philosophy-section {
    background: linear-gradient(135deg, var(--dark) 0%, #111827 100%);
}

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

.philosophy-tags {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.tag-item {
    text-align: center;
}

.tag-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.tag-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--white);
}

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

.contact-wrapper-simple {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-details {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.contact-details .contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(196, 30, 58, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.contact-details .contact-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-details .contact-item span {
    font-size: 15px;
    color: var(--dark-light);
}

.contact-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 12px 30px;
    background: rgba(196, 30, 58, 0.08);
    border-radius: 100px;
    color: var(--primary);
    font-weight: 500;
}

.contact-location i {
    font-size: 18px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    padding: 60px 0 24px;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-brand .footer-logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact .contact-item i {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .philosophy-wrapper,
    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .about-wrapper,
    .philosophy-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-tags {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
