/* ===================================
   广州灵柯数字科技有限公司 - 网站样式
   设计风格：科技蓝 + AI漫剧风格
   主色调：科技蓝 #1890FF
   辅助色：渐变蓝 #36CFC9, 深空暗色 #1a1a2e
   背景色：简约白 #ffffff, 浅灰 #f5f5f5
   =================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* ===================================
   Navbar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 固定导航栏时，body需要预留顶部空间 */
body {
    padding-top: 70px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 14px;
    color: #666;
    padding-left: 10px;
    border-left: 2px solid #1890FF;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 16px;
    color: #333;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1890FF;
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* Hero背景装饰元素 */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.1) 0%, rgba(54, 207, 201, 0.1) 100%);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

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

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(24, 144, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 144, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(24, 144, 255, 0.2);
    border: 1px solid rgba(24, 144, 255, 0.3);
    border-radius: 50px;
    font-size: 14px;
    color: #36CFC9;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #1890FF 50%, #36CFC9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.1s both;
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 20px;
    color: #36CFC9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 1s ease 0.5s both;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.4);
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.6);
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.section-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 50px;
}

.section-dark .section-title {
    color: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.section-header .section-title::after {
    left: 0;
    transform: none;
}

.btn-view-all {
    color: #1890FF;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    color: #36CFC9;
    transform: translateX(5px);
}

/* ===================================
   Services Grid (Home Page)
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(24, 144, 255, 0.2);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1890FF;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Dark section cards */
.section-dark .service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.section-dark .service-card h3 {
    color: #36CFC9;
}

.section-dark .service-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   Advantages Grid (Home Page)
   =================================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
}

.advantage-number {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.advantage-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* ===================================
   Page Header (Sub Pages)
   =================================== */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   Featured Works Section (Home Page)
   =================================== */
.featured-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.featured-work-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.featured-work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(24, 144, 255, 0.15);
}

.work-preview {
    height: 220px;
    overflow: hidden;
}

.work-preview-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.featured-work-card:hover .work-preview-placeholder {
    transform: scale(1.05);
}

.featured-work-card .work-info {
    padding: 25px;
}

.work-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(24, 144, 255, 0.1);
    color: #1890FF;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.featured-work-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.featured-work-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stars {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.author-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
}

.author-info span {
    font-size: 14px;
    color: #999;
}

/* ===================================
   Partners Section
   =================================== */
.partners-section {
    background: #f8f9fa;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-logo {
    height: 80px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #36CFC9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

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

/* ===================================
   About Page
   =================================== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1890FF;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

.about-image .placeholder-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

/* 公司简介居中版本 */
.about-intro-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-intro-center .section-title {
    margin-bottom: 40px;
}

.about-intro-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.intro-content {
    text-align: left;
}

.intro-lead {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 20px;
}

.intro-lead strong {
    color: #1890FF;
}

.intro-content p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 18px;
}

.intro-mission {
    font-size: 17px;
    margin-top: 25px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.05) 0%, rgba(54, 207, 201, 0.05) 100%);
    border-left: 4px solid #1890FF;
    border-radius: 0 8px 8px 0;
}

.intro-mission strong {
    color: #1890FF;
    font-size: 18px;
}

/* Qualifications */
.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.qualification-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
}

.qualification-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #36CFC9;
}

.qualification-item p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.license-placeholder {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}

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

.team-member {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.team-member h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.member-title {
    color: #1890FF;
    font-weight: bold;
    margin-bottom: 15px;
}

.team-member p:last-child {
    color: #666;
    line-height: 1.8;
}

/* ===================================
   Works Page
   =================================== */
.works-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: #fff;
    border: 2px solid #1890FF;
    color: #1890FF;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    color: #fff;
    border-color: transparent;
}

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

.work-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(24, 144, 255, 0.2);
}

.work-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.btn-view {
    padding: 10px 30px;
    background: #fff;
    color: #1890FF;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: #1890FF;
    color: #fff;
}

.work-info {
    padding: 20px;
}

.work-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.work-category {
    color: #1890FF;
    font-weight: bold;
    margin-bottom: 10px;
}

.work-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.work-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 15px;
    background: rgba(24, 144, 255, 0.1);
    color: #1890FF;
    border-radius: 50px;
    font-size: 14px;
}

/* ===================================
   Contact Page
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1890FF;
}

.contact-desc {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
}

.contact-detail h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.contact-detail p {
    color: #666;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.required {
    color: #ff4d4f;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890FF;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* Map */
.map-section {
    padding: 0;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1890FF 0%, #36CFC9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.map-placeholder p:last-child {
    font-size: 18px;
    margin-top: 10px;
    opacity: 0.8;
}

/* ===================================
   Legal Pages (Terms, Privacy, Disclaimer)
   =================================== */
.legal-section {
    padding-top: 120px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.legal-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1890FF;
}

.legal-date {
    color: #999;
    margin-bottom: 30px;
    font-style: italic;
}

.legal-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.legal-content h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

.legal-content p.legal-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
    font-weight: bold;
    color: #1890FF;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 0;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #36CFC9;
}

.footer-section p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: #36CFC9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.icp-placeholder {
    color: #36CFC9;
    font-weight: bold;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    /* 手机端：导航栏改为固定高度，防止遮挡 */
    .navbar {
        position: fixed;
        background: rgba(255, 255, 255, 0.98);
        height: 55px;
    }

    /* body预留导航栏高度空间 */
    body {
        padding-top: 55px;
    }

    /* 内页顶部的page-header也加上间距 */
    .page-header {
        margin-top: 55px;
    }

    .navbar .container {
        flex-direction: row;
        height: 55px;
        padding: 0 15px;
    }

    /* 缩小尺寸 */
    .logo-text {
        font-size: 20px;
    }

    .nav-brand {
        margin-bottom: 0;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 3px 0;
    }

    /* Hero区域增加顶部padding防止被遮挡 */
    .hero {
        min-height: auto;
        height: auto;
        padding: 40px 20px 50px;
    }

    .hero h1 {
        font-size: 26px;
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: auto !important;
        max-width: 260px;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 12px 30px;
        font-size: 14px;
        text-align: center;
        -webkit-text-align: center;
        display: block;
        margin: 0 auto 10px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .section-header .section-title {
        text-align: center;
    }

    .section-header .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .featured-works {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .about-image {
        order: -1;
    }

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

    .works-grid {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .page-header {
        padding: 50px 0 30px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 22px;
    }

    .btn-primary,
    .btn-secondary {
        max-width: 220px;
    }

    .page-header h1 {
        font-size: 24px;
    }
}

/* ========== 作品详情弹窗 ========== */
.work-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 820px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.8);
}

.modal-gallery {
    position: relative;
    background: #000;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.modal-gallery img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 60px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
    border-radius: 4px;
}

.modal-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.modal-arrow-left { left: 10px; }
.modal-arrow-right { right: 10px; }

.modal-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    justify-content: center;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.modal-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    opacity: 0.6;
}

.modal-thumb.active {
    border-color: #1890FF;
    opacity: 1;
    transform: scale(1.08);
}

.modal-thumb:hover {
    opacity: 0.9;
}

.modal-info {
    padding: 24px 28px 28px;
}

.modal-info h2 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 14px;
    color: #1890FF;
    font-weight: 500;
    margin-bottom: 14px;
}

.modal-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    .modal-gallery {
        min-height: 220px;
    }
    .modal-gallery img {
        max-height: 280px;
    }
    .modal-info {
        padding: 16px 18px 20px;
    }
    .modal-info h2 {
        font-size: 18px;
    }
}

/* ===================================
   首页精选作品 - 图片卡片
   =================================== */
.work-preview {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.work-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-work-card:hover .work-preview-img {
    transform: scale(1.06);
}

.work-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 144, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-work-card:hover .work-preview-overlay {
    opacity: 1;
}

.featured-work-card {
    text-decoration: none;
    cursor: pointer;
}
