/* 基础样式重置和优化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 - 性能优化 */
.header {
    background-color: var(--primary-color);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: var(--secondary-color);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: var(--transition);
}

/* 面包屑导航 */
.breadcrumb {
    background-color: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.breadcrumb span {
    color: var(--text-light);
}

/* 首页主标题区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* 内容区块 */
.brand-intro,
.services-section,
.portfolio-section,
.advantages-section,
.contact-cta {
    padding: 4rem 0;
}

.brand-intro {
    background-color: var(--bg-color);
}

.services-section,
.advantages-section {
    background-color: var(--bg-light);
}

.portfolio-section,
.contact-cta {
    background-color: var(--bg-color);
}

h1, h2 {
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* 品牌介绍 */
.intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.intro-image {
    text-align: center;
}

.intro-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.intro-content {
    flex: 1;
}

.intro-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.05rem;
}

.intro-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 1rem;
    transition: var(--transition);
}

.read-more:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* 服务卡片 - 优化性能 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.service-link {
    color: var(--secondary-color);
    font-weight: bold;
    transition: var(--transition);
}

.service-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* 案例网格 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.portfolio-image {
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.portfolio-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 优势网格 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 联系方式区块 */
.contact-cta {
    text-align: center;
}

.contact-info {
    margin: 2rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* 内页样式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.main-content {
    min-height: calc(100vh - 400px);
}

/* 关于我们页面 */
.about-content {
    padding: 3rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-image-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.advantage-list {
    list-style: disc;
    margin-left: 2rem;
    margin-top: 1rem;
}

.advantage-list li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.advantage-list strong {
    color: var(--primary-color);
}

.timeline {
    margin-top: 2rem;
}

.timeline-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.timeline-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-light);
}

/* 服务详情页面 */
.services-detail {
    padding: 3rem 0;
}

.service-detail-item {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.service-detail-item:last-child {
    border-bottom: none;
}

.service-detail-item h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.service-content {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.service-detail-image {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
}

.service-detail-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.service-content h3:first-child {
    margin-top: 0;
}

.service-content ul,
.service-content ol {
    margin-left: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.service-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.service-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 案例详情页面 */
.portfolio-detail {
    padding: 3rem 0;
}

.portfolio-case {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-case:last-child {
    border-bottom: none;
}

.portfolio-case h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.case-content {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.case-image {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
}

.case-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.case-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.case-content h3:first-child {
    margin-top: 0;
}

.case-content ul {
    margin-left: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.case-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.case-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 联系我们页面 */
.contact-section {
    padding: 3rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-item p {
    color: var(--text-light);
    margin: 0.3rem 0;
    line-height: 1.7;
}

.contact-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.contact-form button {
    align-self: flex-start;
    margin-top: 1rem;
}

.map-section {
    padding: 3rem 0;
}

.map-placeholder {
    background-color: var(--bg-light);
    padding: 4rem;
    text-align: center;
    border-radius: 8px;
    color: var(--text-light);
}

.map-placeholder p {
    margin: 0.5rem 0;
}

/* CTA区块 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section strong {
    color: #fff;
    font-weight: 600;
}

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

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section strong {
    color: #fff;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .intro-wrapper {
        grid-template-columns: 1fr;
    }

    .intro-image {
        order: -1;
    }

    .services-grid,
    .portfolio-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .brand-intro,
    .services-section,
    .portfolio-section,
    .advantages-section,
    .contact-cta {
        padding: 2rem 0;
    }

    .service-card,
    .portfolio-item {
        padding: 1.5rem;
    }

    .service-image img,
    .portfolio-image img {
        height: 150px;
    }
}

/* 性能优化 - 减少重绘 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .breadcrumb,
    .menu-toggle {
        display: none;
    }
}
