/* 全局样式 */
:root {
    --text-color: #2C3E50;
    --background-color: #F7EDDF;
    --background-color-d: #f6f0e9;
    --background-color-s: #f1dcc4;

    --shadow-color: rgba(0,0,0,0.1);
    --primary-color: #E67E22;
    --primary-color-dark: #FF9900;
    --primary-color-light: #FFC107;
    --background-color-light: #f8f9fa;
    --text-color-light: #666;
    --card-background: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--background-color);
    background-image: url(../img/bg1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 导航栏样式 */
header {
    background: var(--background-color);
    box-shadow: 0 2px 5px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
}

/* 按钮样式 */
.consultation-btn,
.primary-btn,
.secondary-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.consultation-btn {
    background-color: var(--primary-color);
    color: white;
}

.consultation-btn:hover {
    background-color: var(--primary-color-dark);
}

.consultation-btn i,
.primary-btn i,
.secondary-btn i {
    font-size: 1.1rem;
}

.consultation-btn,
.primary-btn {
    background: var(--primary-color);
    color: var(--background-color);
}

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

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

.secondary-btn:hover {
    background: var(--primary-color-light);
    color: var(--background-color);
}

/* 主要内容区域 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.rotating {
    animation: rotate 10000ms linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-intro {
    margin-top: 2rem;
    width: 100%;
}

.master-intro {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 功能介绍轮播图 */
.features-section {
    padding: 4rem 1rem;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    flex: 0 0 45%;
    max-width: 300px;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 50%;
}

.slide-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.slide-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.nav-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--background-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    transition: all 0.3s ease;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-color-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .features-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .carousel-slide {
        flex-direction: column;
        padding: 0.5rem;
        gap: 1.5rem;
    }

    .carousel-slide img {
        flex: none;
        width: 80%;
    }

    .slide-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .slide-content h3 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.8rem;
    }

    .slide-content p {
        font-size: 1rem;
        text-align: center;
        line-height: 1.5;
    }

    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-dots {
        margin-top: 1.5rem;
        gap: 0.6rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .hero-intro {
        margin-top: 1.5rem;
    }
    
    .master-intro {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .features-section {
        padding: 2rem 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .carousel-slide {
        padding: 0.3rem;
        gap: 1rem;
    }

    .carousel-slide img {
    }

    .slide-content {
        padding: 0 0.8rem;
    }

    .slide-content h3 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.95rem;
    }

    .nav-button {
        width: 32px;
        height: 32px;
    }
}

/* 评分展示区域 */
.ratings-section {
    padding: 4rem 2rem;
    text-align: center;
}

.ratings-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.rating-card {
    cursor: pointer;
    position: relative;
    width: 300px;
    padding: 2.5rem;
    background: linear-gradient(145deg, var(--background-color), var(--background-color-light));
    border-radius: 20px;
    box-shadow: 
        0 10px 30px var(--shadow-color),
        inset 2px 2px 5px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rating-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px var(--shadow-color),
        inset 2px 2px 5px rgba(255, 255, 255, 0.1);
}

.progress-circle {
    position: relative;
    width: 140px;
    height: 200px;
    margin: 0 auto 2rem;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 6px var(--shadow-color));
}

.progress-circle circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.progress-circle .bg {
    stroke: var(--background-color-dark);
    opacity: 0.2;
}

.progress-circle .progress {
    stroke: var(--primary-color);
    stroke-dasharray: 314;
    filter: drop-shadow(0 0 3px var(--primary-color));
}

.progress-circle .percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 2px 4px var(--shadow-color);
}

.rating-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.rating-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.rating-count {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-light);
    max-width: 280px;
    margin: 0 auto;
}

.feature-icon {
    min-width: 90%;
    max-width: 100px;
    margin: 0 auto 2rem;
    padding: 1rem;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.rating-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
    filter: drop-shadow(0 2px 4px var(--shadow-color));
}

@media (max-width: 768px) {
    .rating-card {
        width: 280px;
        padding: 2rem;
    }

    .progress-circle {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .progress-circle .percentage {
        font-size: 1.8rem;
    }

    .rating-label {
        font-size: 1.2rem;
    }

    .rating-count {
        font-size: 0.9rem;
    }

    .feature-icon {
        margin-bottom: 1.5rem;
    }
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--background-color-s);
    color: var(--text-color-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .ratings-container {
        gap: 2rem;
    }

    .rating-card {
        width: 400px;
        padding: 1.5rem;
    }

    .progress-circle {
        width: 130px;
        height: 130px;
    }

    .progress-circle .percentage {
        font-size: 1.5rem;
    }
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 阻尼动效 */
.hero-section {
    transform-origin: top;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section.scrolling {
    transform: scale(0.98);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--background-color);
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .nav-links a {
        margin: 5px 0;
        text-align: center;
        padding: 8px;
        font-size: 0.95rem;
    }

    .consultation-btn {
        width: 90%;
        margin: 5px auto;
        padding: 8px;
    }
}
