/* 
 * 证件制作展示网站样式
 * 配色方案:
 * - 主色: #006F54 (墨绿色)
 * - 辅助色: #FF6B35 (活力橙), #6A7FDB (电子蓝)
 * - 中性色: #FFFFFF (背景), #2D3748 (文字), #A0AEC0 (辅助元素)
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2D3748;
    background-color: #FFFFFF;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 通用容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用部分 */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #006F54;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #A0AEC0;
    text-align: center;
    margin-bottom: 50px;
}

.highlight {
    color: #FF6B35;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #006F54;
    color: white;
}

.btn-primary:hover {
    background-color: #005541;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 111, 84, 0.2);
}

.btn-secondary {
    background-color: #FF6B35;
    color: white;
}

.btn-secondary:hover {
    background-color: #e55a29;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo-container h1 {
    font-size: 1.8rem;
    color: #006F54;
}

.slogan {
    font-size: 0.9rem;
    color: #A0AEC0;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    color: #2D3748;
    position: relative;
}

.main-nav a:hover {
    color: #006F54;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #006F54;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #006F54;
    cursor: pointer;
}

/* 主横幅 */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #FF6B35;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 服务项目 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: #006F54;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2D3748;
}

.service-card p {
    color: #A0AEC0;
}

/* 工艺介绍 */
.process {
    background-color: #f8f9fa;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #006F54;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2D3748;
}

.process-step p {
    color: #A0AEC0;
}

.disclaimer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #A0AEC0;
}

/* 样本展示 */
.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.sample-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sample-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sample-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.sample-item:hover .sample-overlay {
    transform: translateY(0);
}

.sample-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.sample-overlay p {
    font-size: 0.9rem;
    color: #FF6B35;
}

/* 服务特色 */
.features {
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: #FF6B35;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2D3748;
}

.feature-card p {
    color: #A0AEC0;
}

/* SEO内容区 */
.seo-content {
    background-color: white;
    padding: 60px 0;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.seo-item h3 {
    font-size: 1.3rem;
    color: #006F54;
    margin-bottom: 15px;
}

.seo-item p {
    color: #2D3748;
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background-color: #2D3748;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.footer-info p {
    color: #A0AEC0;
    margin-bottom: 10px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links ul li a {
    color: #A0AEC0;
}

.footer-links ul li a:hover {
    color: #FF6B35;
}

.footer-contact p {
    color: #A0AEC0;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #A0AEC0;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

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

@media (max-width: 768px) {
    .header .container {
        position: relative;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 10px 10px;
        z-index: 1000;
        padding: 20px 0;
        margin-top: 10px;
    }

    .main-nav.show {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 15px 30px;
        font-size: 1.1rem;
        color: #2D3748;
        transition: all 0.3s ease;
        position: relative;
    }

    .main-nav a:hover {
        background-color: #f8f9fa;
        color: #006F54;
        padding-left: 40px;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background-color: #006F54;
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .main-nav a:hover::before {
        transform: scaleY(1);
    }

    .mobile-menu-toggle {
        display: block;
        transition: transform 0.3s ease;
    }

    .mobile-menu-toggle.active {
        transform: rotate(90deg);
    }

    .mobile-menu-toggle.active i::before {
        content: "\f00d"; /* Font Awesome times icon */
    }

    .hero {
        padding: 130px 0 70px;
    }

    .hero h2 {
        font-size: 2rem;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }
}

/* 移动端菜单动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero h3 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .logo-container h1 {
        font-size: 1.5rem;
    }
}
