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

body {
    font-family: 'Noto Sans SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

a:hover {
    color: #c0392b;
}

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

ul, ol {
    list-style: none;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c0392b;
    color: #fff;
}

.btn-app {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-app i {
    margin-right: 8px;
    font-size: 20px;
}

.btn-app:hover {
    background-color: #000;
    color: #fff;
}

/* 图标样式 */
.icon-check:before {
    content: "✓";
    margin-right: 8px;
    color: #e74c3c;
    font-weight: bold;
}

.icon-email:before,
.icon-phone:before,
.icon-location:before {
    margin-right: 8px;
    color: #e74c3c;
}

.icon-email:before {
    content: "✉";
}

.icon-phone:before {
    content: "☎";
}

.icon-location:before {
    content: "⌖";
}

.icon-weibo:before,
.icon-wechat:before,
.icon-douyin:before,
.icon-bilibili:before {
    font-size: 24px;
}

.icon-weibo:before {
    content: "W";
}

.icon-wechat:before {
    content: "C";
}

.icon-douyin:before {
    content: "D";
}

.icon-bilibili:before {
    content: "B";
}

.icon-android:before {
    content: "A";
}

.icon-apple:before {
    content: "i";
}

/* 导航栏样式 */
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;
    height: 80px;
}

.logo a {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #f0f0f0;
    color: #e74c3c;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../picture/q23.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 120px 0;
    position: relative;
}

.banner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../picture/q24.jpg');
    background-size: 200px;
    opacity: 0.1;
    pointer-events: none;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 特色模块样式 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #e74c3c;
}

/* 热门模板样式 */
.popular-templates {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.popular-templates h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

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

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

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

.template-img {
    height: 200px;
    overflow: hidden;
}

.template-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.template-card:hover .template-img img {
    transform: scale(1.1);
}

.template-info {
    padding: 20px;
}

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

.template-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.template-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.template-meta span {
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    color: #666;
}

.template-info .btn {
    width: 100%;
    padding: 10px;
}

/* 文章模块样式 */
.articles {
    padding: 80px 0;
    background-color: #fff;
}

.articles h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.article-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.article-card h3 {
    font-size: 20px;
    padding: 20px 20px 10px;
    color: #333;
}

.article-card p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 14px;
}

/* APP下载模块样式 */
.app-download {
    padding: 80px 0;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

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

.app-info {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.app-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.app-info p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.app-features {
    margin-bottom: 30px;
}

.app-features li {
    margin-bottom: 10px;
    font-size: 16px;
}

.app-buttons {
    display: flex;
    flex-wrap: wrap;
}

.app-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.app-image img {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 用户评价样式 */
.testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.testimonial-author p {
    color: #777;
    font-size: 14px;
}

/* 常见问题样式 */
.faq {
    padding: 80px 0;
    background-color: #fff;
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-left: 30px;
}

.faq-item h3:before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 0;
    color: #e74c3c;
    font-weight: bold;
}

.faq-item p {
    color: #666;
    padding-left: 30px;
    position: relative;
}

.faq-item p:before {
    content: "A";
    position: absolute;
    left: 0;
    top: 0;
    color: #3498db;
    font-weight: bold;
}

/* 订阅模块样式 */
.subscribe {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../picture/q25.jpg') no-repeat center center;
    background-size: cover;
    text-align: center;
    color: #fff;
}

.subscribe h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.subscribe p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.subscribe-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.subscribe-form input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.subscribe-form .btn {
    border-radius: 0 4px 4px 0;
    padding: 15px 30px;
}

/* 页脚样式 */
footer {
    background-color: #222;
    color: #fff;
    padding: 80px 0 30px;
}

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

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e74c3c;
}

.footer-column p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

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

.footer-column ul li a {
    color: #aaa;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #e74c3c;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 14px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #e74c3c;
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.copyright p {
    color: #777;
    font-size: 14px;
    margin-bottom: 5px;
}

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

.footer-links ul li {
    margin-left: 20px;
}

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

.friend-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.friend-links h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

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

.friend-links ul li a,
.friend-links a {
    color: #aaa;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: column;
        height: auto;
        padding: 20px 15px;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .banner {
        padding: 80px 0;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 18px;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .feature-grid,
    .template-grid,
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-links ul li {
        margin: 0 10px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .subscribe-form .btn {
        border-radius: 4px;
        width: 100%;
    }
}
