/* styles.css */
/* 基础样式 */
:root {
    --primary: #6c63ff;
    --secondary: #4a44b5;
    --dark: #2a265f;
    --light: #f5f5f7;
    --accent: #ff6584;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* 活动导航指示器 */
nav .active {
    position: relative;
    color: #6c63ff;
}

nav .active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #6c63ff;
    border-radius: 3px;
}

/* 头部展示区 */
header {
    height: 80vh;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 服务网格 */
.services-section {
    padding: 5rem 10%;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
    position: relative;
}

.services-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    display: block;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 特色优势 */
.features {
    display: flex;
    justify-content: center;
    padding: 4rem 10%;
    background: var(--secondary);
    color: white;
}

.feature {
    text-align: center;
    padding: 0 3rem;
    max-width: 300px;
}

.feature i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.feature h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--dark);
    color: white;
}

/* contact.html 专属样式 */
.contact-section {
    padding: 5rem 10%;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.2rem;
    color: #666;
}

.contact-container {
    display: flex;
    gap: 3rem;
    margin-bottom: 5rem;
}

.contact-info, .contact-form {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.contact-info h2, .contact-form h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 1rem;
    min-width: 24px;
}

.business-hours {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.business-hours h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.submit-btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.qrcode-section {
    text-align: center;
}

.qrcode-section h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.qrcodes {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.qrcode-item {
    max-width: 180px;
}

.qrcode-placeholder {
    width: 150px;
    height: 150px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 10px;
    margin: 0 auto 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        margin-bottom: 2rem;
    }
    
    .contact-container {
        flex-direction: column;
    }
}