/* Material Design 风格的全局样式 */
:root {
    --primary-color: #7B1FA2;
    --primary-light: #E1BEE7;
    --primary-dark: #4A148C;
    --secondary-color: #00BCD4;
    --secondary-light: #84FFFF;
    --secondary-dark: #0097A7;
    --background: #FFFFFF;
    --surface: #FFFFFF;
    --error: #CF6679;
    --on-primary: #FFFFFF;
    --on-secondary: #000000;
    --on-background: #000000;
    --on-surface: #000000;
    --on-error: #000000;
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-disabled: rgba(0, 0, 0, 0.38);
    --divider: rgba(0, 0, 0, 0.12);
    --shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --shadow-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    --shadow-5: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
    --border-radius: 4px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient-primary: linear-gradient(135deg, #9C27B0 0%, #673AB7 50%, #3F51B5 100%);
    --gradient-secondary: linear-gradient(135deg, #00BCD4 0%, #009688 100%);
}

/* 暗色主题变量 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #E1BEE7;
        --primary-light: #F3E5F5;
        --primary-dark: #9C27B0;
        --secondary-color: #00BCD4;
        --secondary-light: #84FFFF;
        --secondary-dark: #0097A7;
        --background: #121212;
        --surface: #1E1E1E;
        --error: #CF6679;
        --on-primary: #000000;
        --on-secondary: #000000;
        --on-background: #FFFFFF;
        --on-surface: #FFFFFF;
        --on-error: #000000;
        --text-primary: rgba(255, 255, 255, 0.87);
        --text-secondary: rgba(255, 255, 255, 0.6);
        --text-disabled: rgba(255, 255, 255, 0.38);
        --divider: rgba(255, 255, 255, 0.12);
        --gradient-primary: linear-gradient(135deg, #9C27B0 0%, #673AB7 50%, #3F51B5 100%);
        --gradient-secondary: linear-gradient(135deg, #00BCD4 0%, #009688 100%);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    box-shadow: var(--shadow-2);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
}

.navbar-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.navbar-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-primary);
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 英雄区域样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 16px 40px;
    background: var(--gradient-primary);
    color: var(--on-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background-color: var(--surface);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-3);
    width: 220px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-4);
}

.card-1 {
    top: 10px;
    right: 10px;
    animation-delay: 0s;
    z-index: 3;
}

.card-2 {
    bottom: 30px;
    right: 180px;
    animation-delay: 2s;
    z-index: 2;
}

.card-3 {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    animation-delay: 4s;
    z-index: 1;
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--on-primary);
    margin: 0 auto 1rem;
}

.card-icon .material-icons {
    font-size: 30px;
}

.floating-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.floating-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--on-primary);
    box-shadow: var(--shadow-2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-3);
}

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

.btn-outline:hover {
    background-color: var(--on-primary);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

/* 服务区域样式 */
.services {
    padding: 80px 0;
    background-color: var(--background);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-media {
    padding: 2rem;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--on-primary);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon-large .material-icons {
    font-size: 40px;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.card-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateX(5px);
}

/* 关于我们区域样式 */
.about {
    padding: 80px 0;
    background-color: var(--surface);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    color: var(--on-primary);
    text-align: center;
}

.image-placeholder .material-icons {
    font-size: 80px;
}

/* 联系我们区域样式 */
.contact {
    padding: 80px 0;
    background-color: var(--background);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--on-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 2px solid var(--divider);
    background-color: transparent;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-disabled);
}

/* 页脚样式 */
.footer {
    background-color: var(--surface);
    color: var(--text-primary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--divider);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--divider);
    text-align: center;
    color: var(--text-secondary);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--on-primary);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-3);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-visual {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-2);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 80px 16px 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .floating-card {
        width: 150px;
        padding: 1rem;
    }
    
    .card-1 {
        top: 10px;
        right: 10px;
    }
    
    .card-2 {
        bottom: 20px;
        right: 60px;
    }
    
    .card-3 {
        top: 60px;
        left: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        justify-content: space-around;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}