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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #ff6b6b;
}

.logo svg {
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-weight: 500;
    color: #555;
    position: relative;
}

.main-nav a:hover {
    color: #ff6b6b;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

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

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    width: 200px;
    outline: none;
}

.search-box button {
    padding: 8px 15px;
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* 轮播图样式 */
.banner {
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider {
    position: relative;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    max-width: 600px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-content h1, .slide-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev, .next {
    font-size: 24px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
}

.dots {
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

/* 内容区域通用样式 */
section {
    margin: 50px 0;
}

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

.section-header h2 {
    font-size: 28px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: #ff6b6b;
    border-radius: 3px;
}

.more {
    color: #ff6b6b;
    font-weight: 500;
}

.more:hover {
    text-decoration: underline;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

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

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

.card-img {
    position: relative;
    height: 250px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content p {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

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

.stars {
    color: #ffcc00;
    letter-spacing: 2px;
}

.score {
    font-weight: bold;
    color: #ff6b6b;
}

/* 约会地点样式 */
.spots-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spot {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.spot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spot-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.spot-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.spot-info p {
    margin-bottom: 15px;
    font-size: 14px;
}

/* APP下载区域样式 */
.app-download {
    background-color: #fff;
    padding: 50px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.app-info {
    flex: 1;
    padding-right: 50px;
}

.app-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.app-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.download-btns {
    display: flex;
    margin-bottom: 30px;
}

.download-btns .btn {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.download-btns .btn i {
    margin-right: 8px;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.qr-code p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.app-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-image img {
    max-height: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 文章区域样式 */
.article-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-img {
    flex: 0 0 300px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    padding: 20px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #ff6b6b;
    font-weight: 500;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* 用户评价区域样式 */
.testimonials {
    background-color: #fff;
    padding: 50px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: flex;
    align-items: center;
    padding: 20px;
}

.avatar {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    border: 5px solid #f0f0f0;
}

.testimonial-content {
    flex: 1;
}

.quote {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 40px;
    color: #ff6b6b;
    line-height: 1;
    opacity: 0.5;
}

.author {
    font-weight: bold;
    color: #333;
    text-align: right;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.prev-testimonial, .next-testimonial {
    font-size: 24px;
    color: #fff;
    background-color: #ff6b6b;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo svg {
    margin-right: 10px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 70%;
}

.footer-section {
    flex: 0 0 calc(25% - 20px);
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff6b6b;
}

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

.footer-section ul li a {
    color: #ccc;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.copyright {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.copyright p {
    margin-bottom: 5px;
}

.footer-links h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
}

.friend-links ul li, .friend-links a {
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}

.friend-links ul li a:hover, .friend-links a:hover {
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
    }
    
    .search-box input {
        width: 60%;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .download-btns {
        justify-content: center;
    }
    
    .article {
        flex-direction: column;
    }
    
    .article-img {
        flex: 0 0 200px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-nav {
        width: 100%;
    }
    
    .footer-section {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .slider {
        height: 350px;
    }
    
    .slide-content {
        bottom: 30px;
        left: 30px;
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .spots-container {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .slider {
        height: 250px;
    }
    
    .slide-content {
        bottom: 20px;
        left: 20px;
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 20px;
    }
    
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-section {
        flex: 0 0 100%;
    }
}
