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

body {
    color: #333;
    line-height: 1.6;
    background-color: #0a0a1a;
    overflow-x: hidden;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
}

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

a {
    text-decoration: none;
    color: #6c63ff;
    transition: all 0.3s ease;
}

a:hover {
    color: #8a85ff;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6c63ff 0%, #4a45b5 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #6c63ff;
    color: #6c63ff;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.2);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #6c63ff 0%, #4a45b5 100%);
    color: white;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: #2c2c54;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.2rem;
    color: #7b88a1;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* 导航栏 - 现代风格 */
header {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(12px);
    padding: 18px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.logo {
    font-size: 1.9rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo img {
    height: 42px;
    margin-right: 12px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, #6c63ff, #4a45b5);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* 英雄区域 - 现代风格 */
.hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #2d2d5a 100%);
    color: white;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 69, 181, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="rgba(255,255,255,0.4)"/><circle cx="50" cy="50" r="0.3" fill="rgba(255,255,255,0.4)"/><circle cx="80" cy="80" r="0.7" fill="rgba(255,255,255,0.4)"/><circle cx="10" cy="80" r="0.4" fill="rgba(255,255,255,0.4)"/><circle cx="80" cy="10" r="0.6" fill="rgba(255,255,255,0.4)"/></svg>');
    background-size: 300px;
    opacity: 0.7;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    font-family: 'Montserrat', sans-serif;
}

.hero h1 .japanese {
    display: block;
    font-size: 3.2rem;
    margin-bottom: 10px;
}

.hero h1 .english {
    display: block;
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 45px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 烟花画布 */
#fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 服务部分 */
/* 服务部分 - 深色背景 */
.services {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 100%);
    color: white;
}

.services .section-title h2 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.services .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6c63ff 0%, #4a45b5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

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

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* サービスリスト用デザイン */
.service-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.service-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-list li i {
    color: #6c63ff;
    font-size: 1.1rem;
}

/* 深色背景下的按钮样式 */
.services .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.services .btn-outline:hover {
    background: white;
    color: #2c2c54;
    border-color: white;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .service-card {
        margin: 0 10px;
        padding: 30px 20px;
    }
    
    .services-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .service-card {
        margin: 0 5px;
    }
}

/* 案例部分 */
.cases {
    background-color: #f8f9fa;
}

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

.case-item {
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.case-item:nth-child(1) {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.case-item:nth-child(2) {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.case-item:nth-child(3) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.case-item:hover .case-info {
    transform: translateY(0);
}

/* TikTok部分 */
.tiktok {
    background-color: white; /* 改为白色 */
    color: #333; /* 文字颜色改为深色 */
}

.tiktok-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.tiktok-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.tiktok .section-title h2 {
    color: #2c2c54; /* 改为深色标题 */
}

.tiktok .section-title p {
    color: #7b88a1; /* 改为灰色副标题 */
}


.tiktok-stats {
    display: flex;
    margin-top: 30px;
    gap: 30px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6c63ff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* ✅ 视频外框（强制16:9） */
.tiktok-video {
  position: relative;
  flex: 1 1 50%;
  width: 100%;
  max-width: 600px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

/* ✅ 内部视频容器：使用内联比例控制 */
.tiktok-video::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 9/16 = 0.5625 → 保持16:9 */
}

/* ✅ 视频样式 */
.tiktok-animation-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 可改为 cover，看你想要哪种效果 */
  object-position: center;
  border-radius: 12px;
  display: block;
  z-index: 1;
}

/* ✅ 覆盖层 */
.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  text-align: center;
  font-size: 0.9rem;
  z-index: 2;
}

/* 📱 响应式：移动端上下排列 */
@media (max-width: 992px) {
  .tiktok-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .tiktok-video {
    width: 100%;
    max-width: 700px;
  }
}


/* 理念部分 */
.concept {
    background-color: white;
}

.concept-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* 左侧文字 */
.concept-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.concept-text h2 {
    font-size: 2.2rem;
    color: #2c2c54;
    margin-bottom: 25px;
}

.concept-text p {
    margin-bottom: 20px;
    color: #7b88a1;
}

/* 理念部分轮播图片 */
.concept-slider {
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
}

.concept-slider .slides {
    display: flex;
    gap: 20px; /* 图片间隔 */
    transition: transform 0.5s ease; /* 平滑滑动 */
}

.concept-slider .slides img {
    width: 100%;
    flex-shrink: 0;
    border-radius: 12px;
}

.concept-slider .dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.concept-slider .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.concept-slider .dot.active {
    background: #6c63ff;
}


/* 联系部分 */
.contact {
    background-color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c2c54;
}

.contact-info p {
    margin-bottom: 15px;
    color: #7b88a1;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c2c54;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* 页脚 */
footer {
    background-color: #0a0a1a;
    color: #cbd5e1;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-column a {
    color: #cbd5e1;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #6c63ff;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero h1 .japanese {
        font-size: 2.8rem;
    }
    
    .hero h1 .english {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero h1 .japanese {
        font-size: 2.5rem;
    }
    
    .hero h1 .english {
        font-size: 2.7rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .concept-text, .tiktok-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 26, 0.95);
        flex-direction: column;
        padding: 25px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 140px 0 80px;
        text-align: center;
    }
    
    .hero h1 .japanese {
        font-size: 2.2rem;
    }
    
    .hero h1 .english {
        font-size: 2.4rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
        margin-bottom: 15px;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    .tiktok-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 .japanese {
        font-size: 1.8rem;
    }
    
    .hero h1 .english {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-card, .case-item {
        margin: 0 10px;
    }
    
    .footer-column {
        min-width: 100%;
    }
}

/* 平板特定样式 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        padding: 0 40px;
    }
    
    .hero h1 .japanese {
        font-size: 2.8rem;
    }
    
    .hero h1 .english {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* サービスリスト用デザイン */
.service-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.service-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-list li i {
    color: #6c63ff;
    font-size: 1.1rem;
}