/* 
 * 尧图网 - 网站建设公司官网样式
 * 日式简约风格：亚麻灰 + 原木色 + 米白
 */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #4a4a4a;
    background-color: #f5f3ef;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #c9a961;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Padding */
section {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    color: #2c2c2c;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 40px; text-align: center; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Color Variables */
:root {
    --linen-gray: #d4cfc7;
    --wood-brown: #c9a961;
    --wood-dark: #a68b4b;
    --rice-white: #f5f3ef;
    --text-dark: #4a4a4a;
    --text-light: #8a8a8a;
    --white: #ffffff;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(245, 243, 239, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding 0.4s ease;
}

.header.scrolled .header-inner {
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a4a4a;
    position: relative;
    padding: 5px 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wood-brown);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #4a4a4a;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e4dc 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #6a6a6a;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--wood-brown);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--wood-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--wood-brown);
    border: 2px solid var(--wood-brown);
}

.btn-outline:hover {
    background: var(--wood-brown);
    color: var(--white);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--wood-brown);
    border-radius: 5px;
    z-index: -1;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 25px;
}

.about-text {
    color: #6a6a6a;
    margin-bottom: 20px;
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--rice-white);
    border-radius: 5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wood-brown);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #8a8a8a;
    margin-top: 5px;
}

/* Services Section */
.services-section {
    background: linear-gradient(180deg, #f5f3ef 0%, #ebe7df 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--rice-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 45px;
    height: 45px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.service-card p {
    font-size: 0.95rem;
    color: #8a8a8a;
    line-height: 1.7;
}

/* Industries Section */
.industries-section {
    background: var(--white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.industry-card {
    position: relative;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.industry-card:hover img {
    transform: scale(1.1);
}

.industry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
}

.industry-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.industry-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Process Section */
.process-section {
    background: var(--rice-white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--linen-gray);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--wood-brown);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: #8a8a8a;
    padding: 0 15px;
}

/* Portfolio Section */
.portfolio-section {
    background: var(--white);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--linen-gray);
    background: transparent;
    color: #6a6a6a;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--wood-brown);
    background: var(--wood-brown);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* News Section */
.news-section {
    background: var(--rice-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--wood-brown);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-content h3 a:hover {
    color: var(--wood-brown);
}

.news-excerpt {
    font-size: 0.9rem;
    color: #8a8a8a;
    line-height: 1.7;
    margin-bottom: 15px;
}

.news-link {
    font-size: 0.9rem;
    color: var(--wood-brown);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    gap: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--wood-brown) 0%, var(--wood-dark) 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-white {
    background: var(--white);
    color: var(--wood-brown);
}

.btn-white:hover {
    background: var(--rice-white);
    transform: translateY(-2px);
}

.btn-border {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-border:hover {
    background: var(--white);
    color: var(--wood-brown);
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #d4cfc7;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--wood-brown);
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--wood-brown);
    transform: translateY(-3px);
}

.social-link img {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--wood-brown);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e4dc 100%);
    padding: 180px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #8a8a8a;
}

.breadcrumb a:hover {
    color: var(--wood-brown);
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section.alt-bg {
    background: var(--rice-white);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-intro p {
    font-size: 1.1rem;
    color: #6a6a6a;
    line-height: 1.8;
}

/* Detail Cards */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.detail-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.detail-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.detail-content {
    padding: 35px;
}

.detail-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.detail-content p {
    color: #6a6a6a;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--linen-gray);
    font-size: 0.9rem;
    color: #8a8a8a;
}

/* Single Column Layout */
.single-column {
    max-width: 900px;
    margin: 0 auto;
}

.single-column img {
    width: 100%;
    border-radius: 8px;
    margin: 30px 0;
}

.single-column h2 {
    text-align: left;
    margin-bottom: 25px;
}

.single-column p {
    margin-bottom: 20px;
    color: #6a6a6a;
    line-height: 1.9;
    text-align: justify;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.team-photo {
    height: 280px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.08);
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--wood-brown);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.contact-info-box h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--rice-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon img {
    width: 24px;
    height: 24px;
}

.info-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-text p {
    color: #8a8a8a;
    font-size: 0.95rem;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a4a4a;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--linen-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--rice-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--wood-brown);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    height: 450px;
    background: var(--linen-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industries-grid,
    .portfolio-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-steps {
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
    }
    
    .process-step {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--rice-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.4s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid,
    .detail-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image::before {
        display: none;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .industries-grid,
    .portfolio-grid,
    .news-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex: 0 0 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .contact-info-box,
    .contact-form {
        padding: 25px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
