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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

header .logo a {
    color: #fff;
    text-decoration: none;
}

/* Hero区域 - 方案一：自动换行优化 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.6;
}

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

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

/* 副标题自动换行样式 */
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    line-height: 1.8;              /* 增加行高，提高可读性 */
    word-wrap: break-word;          /* 允许长单词换行 */
    overflow-wrap: break-word;      /* 现代浏览器的换行属性 */
    white-space: normal;            /* 允许正常换行 */
    max-width: 900px;               /* 限制最大宽度 */
    margin-left: auto;              /* 水平居中 */
    margin-right: auto;             /* 水平居中 */
    padding: 0 25px;                /* 左右内边距，防止贴边 */
    
    /* 添加背景半透明效果，增加可读性 */
    background: rgba(0, 0, 0, 0.15);
    padding: 20px 30px;
    border-radius: 12px;
    backdrop-filter: blur(3px);     /* 毛玻璃效果 */
    
    /* 文本优化 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    
    /* 添加文字阴影，增强可读性 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

/* 特性区域 */
.features {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.section-title h3 {
    font-size: 2rem;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: #333;
}

/* 文章区域 */
.articles {
    padding: 60px 0;
}

.articles-list {
    display: grid;
    gap: 30px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.article-image {
    flex: 0 0 200px;
}

.article-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.article-content {
    flex: 1;
}

.article-content h4 {
    margin-bottom: 10px;
}

.article-content h4 a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.article-content h4 a:hover {
    color: #667eea;
}

.article-meta {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.article-meta span {
    margin-right: 20px;
}

.article-summary {
    margin-bottom: 15px;
    color: #666;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
}

/* 文章详情页 */
.article-detail {
    padding: 40px 0;
    min-height: 500px;
}

.article-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.article-featured-image {
    margin: 30px 0;
}

.article-featured-image img {
    max-width: 100%;
    border-radius: 10px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin: 30px 0 15px;
}

.article-content h3 {
    margin: 25px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 文章详情页按钮样式 */
.article-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    animation: none;
}

.btn-apply::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-apply:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.btn-back {
    background: #6c757d;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 浮动办理按钮（移动端优化） */
.floating-apply-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    z-index: 1000;
    text-decoration: none;
    animation: slideUp 0.5s ease;
    border: none;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.8);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 992px) {
    .hero-content p {
        max-width: 100%;
        padding: 18px 25px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 15px 20px;
        line-height: 1.7;
        max-width: 100%;
        background: rgba(0, 0, 0, 0.1);
    }
    
    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-image {
        flex: auto;
    }
    
    .article-image img {
        height: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .article-actions {
        margin-bottom: 80px;
    }
    
    .floating-apply-btn {
        display: block;
    }
    
    .btn-apply {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        padding: 12px 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    header .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .section-title h3 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}

/* 文章内容样式优化 */
.article-content ul {
    margin: 20px 0;
    padding-left: 20px;
    list-style-type: none;
}

.article-content ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.article-content ul li::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 确保所有链接都正确显示 */
a {
    text-decoration: none;
}