/* ========================================
   首页样式 - 包含轮播
   ======================================== */

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-p {
    color: white;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Arial Black', sans-serif;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   轮播Banner
   ======================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.slide-1 {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
}

.slide-2 {
    background: linear-gradient(135deg, #FF6B00 0%, #E55A00 100%);
}

.slide-3 {
    background: linear-gradient(135deg, #2D3436 0%, #636E72 100%);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat right top;
    background-size: 50%;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.slide-text {
    max-width: 600px;
}

.slide-text h2 {
    font-size: 52px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.slide-2 .slide-text h2 {
    color: white;
}

.slide-text p {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease 0.2s forwards;
}

.slide-2 .slide-text p {
    color: rgba(255,255,255,0.9);
}

.slide-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease 0.4s forwards;
}

.slide-buttons .btn {
    padding: 16px 36px;
}

.slide-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.slide-buttons .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.slide-buttons .btn-outline-white {
    background: transparent;
    color: white;
    border-color: white;
}

.slide-buttons .btn-outline-white:hover {
    background: white;
    color: var(--secondary-color);
}

.slide-image {
    max-width: 500px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideLeft 0.8s ease 0.3s forwards;
}

.slide-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.slide-2 .slide-image img {
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* 轮播指示器 */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.slider-dots .dot.active {
    background: white;
    width: 35px;
    border-radius: 6px;
}

.slider-dots .dot:hover {
    background: rgba(255,255,255,0.8);
}

/* 轮播箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 统计数字 */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 80px;
    padding: 30px 60px;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.1);
    z-index: 5;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 8px;
}

/* ========================================
   首页各区块样式
   ======================================== */

/* 关于我们 */
.about {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 18px;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-offwhite), #FFE8D6);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.image-placeholder i {
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 18px;
    color: var(--text-gray);
}

/* 传统互联网服务 */
.services {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-offwhite);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
}

.service-icon i {
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* 美业门店服务 */
.beauty-services {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-offwhite) 100%);
}

.beauty-intro {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-md);
}

.beauty-icon-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.beauty-icon-large i {
    font-size: 50px;
    color: white;
}

.beauty-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.beauty-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

.beauty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.beauty-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: block;
}

.beauty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.beauty-card:hover::before {
    transform: scaleX(1);
}

.beauty-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255,107,0,0.3);
}

.beauty-card-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-offwhite);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.beauty-card-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.beauty-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.beauty-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

.beauty-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--secondary-color), #2D2D44);
    padding: 30px 50px;
    border-radius: 20px;
    margin-top: 50px;
}

.cta-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.cta-content p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.beauty-cta .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    flex-shrink: 0;
}

/* 优势 */
.advantages {
    padding: 100px 0;
    background: var(--bg-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition);
}

.advantage-item:hover {
    background: var(--bg-offwhite);
    transform: translateY(-5px);
}

.advantage-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* 合作伙伴 */
.partners {
    padding: 80px 0;
    background: var(--bg-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.partner-logo {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.partner-logo:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.partner-logo i {
    font-size: 36px;
    color: var(--primary-color);
}

.partner-logo span {
    font-size: 13px;
    color: var(--text-gray);
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--bg-offwhite);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 22px;
    color: white;
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.contact-details p {
    font-size: 15px;
    color: var(--text-gray);
}

.contact-details a {
    color: var(--primary-color);
}

.contact-details a:hover {
    text-decoration: underline;
}

/* 联系表单 */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

/* 页脚 */
.footer {
    background: var(--secondary-color);
    padding: 60px 0 0;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-icon {
    background: var(--primary-color);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary-color);
}

.footer-contact ul li {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact ul li i {
    color: var(--primary-color);
    width: 18px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: var(--primary-color);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板 */
@media (max-width: 1024px) {
    .slide-text h2 {
        font-size: 40px;
    }
    
    .slide-image {
        max-width: 350px;
    }
    
    .services-grid,
    .beauty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        gap: 40px;
        padding: 25px 40px;
    }
}

/* 手机 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero-slider {
        min-height: 600px;
    }
    
    .slide-content {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }
    
    .slide-text h2 {
        font-size: 28px;
    }
    
    .slide-text p {
        font-size: 16px;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .slide-image {
        display: none;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow.prev {
        left: 15px;
    }
    
    .slider-arrow.next {
        right: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
        width: 90%;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-placeholder {
        height: 250px;
    }
    
    .services-grid,
    .beauty-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .beauty-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .beauty-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .slide-text h2 {
        font-size: 24px;
    }
    
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dots .dot.active {
        width: 25px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .service-card,
    .beauty-card {
        padding: 25px 20px;
    }
    
    .contact-form-wrapper {
        padding: 25px 20px;
    }
}
