/* 这里存放从index.html提取的所有CSS样式 */

:root {
    --primary-color: #007AFF; 
    --secondary-color: #F5F9FF;
    --dark-color: #1A1A1A;
    --light-color: #FFFFFF;
    --gray-color: #666666;
    --green-color: #00B37E;
}

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

body {
    font-family: 'Noto Sans SC', 'Microsoft Yahei', "微软雅黑", sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

header {
    background: var(--light-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.carousel-section {
    background: linear-gradient(120deg, #e6f0ff 0%, #f5f9ff 100%);
    padding: 0;
    width: 100%;
    overflow: hidden;
    margin-top: -1px;
}

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

.carousel-track {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
}

.carousel-track img {
    width: 100%;
    flex: 1 0 100%;
    object-fit: cover;
    height: 400px;
    transition: opacity 0.5s ease-in-out;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--light-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.hero {
    background: linear-gradient(120deg, #e6f0ff 0%, #f5f9ff 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    margin-top: -1px;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.solutions {
    padding: 4rem 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-header {
    padding: 1.5rem 1.5rem 0.5rem;
    position: relative;
}

.solution-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.solution-subtitle {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.solution-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s;
    text-decoration: none;
}

.solution-btn:hover {
    background: #005fcc;
}

.solution-features {
    padding: 1.5rem 1.5rem 1rem;
    border-top: 1px solid #eee;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
}

.feature-item {
    width: 50%;
    box-sizing: border-box;
}

.feature-icon {
    color: var(--green-color);
    font-size: 1.2rem;
}

.feature-text {
    color: var(--dark-color);
}

.news-section {
    background: var(--secondary-color);
    padding: 4rem 0;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.news-tag {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.partners {
    padding: 4rem 0;
    text-align: center;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info {
    margin-top: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .carousel-track img {
        height: 250px;
    }

    .solution-card {
        margin-bottom: 2rem;
    }

    .solution-title {
        font-size: 1.2rem;
    }

    .feature-item {
        width: 100%;
    }
}

/* 以下为newslist.html追加的样式 */
:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --secondary: #6366F1;
    --text: #1F2937;
    --sub-text: #4B5563;
    --bg: #F9FAFB;
    --card-bg: #FFFFFF;
    --radius: 0.75rem;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body {
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #F3F4F6, #FFFFFF);
    color: var(--text);
    line-height: 1.6;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 240px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(245,245,255,0.8) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease;
}

.sidebar.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.nav-item {
    display: block;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.6rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background-color: rgba(59, 133, 246, 0.1);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-weight: 600;
}

.mobile-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    padding: 0.6rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.95);
}

.content {
    margin-left: 0;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.category-header {
    margin-bottom: 2.5rem;
}

.category-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-header p {
    font-size: 1.1rem;
    color: var(--sub-text);
    max-width: 600px;
}

.list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.list-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-left-color: var(--primary);
}

.list-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59,133,246,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}

.list-item:hover::after {
    opacity: 1;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--sub-text);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(59,133,246,0.1), rgba(99,102,241,0.05));
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.item-desc {
    font-size: 1rem;
    color: var(--sub-text);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.btn-readmore {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-readmore:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

.btn-readmore svg {
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.btn-readmore:hover svg {
    transform: translateX(3px);
}

.load-more {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.load-btn {
    padding: 0.85rem 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.load-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.load-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 50%;
}

.load-btn:hover::after {
    opacity: 1;
}

@media (min-width: 768px) {
    .sidebar {
        display: block;
    }

    .mobile-toggle {
        display: none;
    }

    .content {
        margin-left: 240px;
    }

    .list {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .list {
        grid-template-columns: repeat(2, 1fr);
    }
} 

/* 文章标题样式 */
.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

/* 内容区域增强 */
.article-content {
    line-height: 1.8;
    color: #374151;
    word-break: break-word;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid #3b82f6;
    background-color: #bfdbfe;
    padding: 1rem 1.5rem;
    margin: 1.25rem 0;
    border-radius: 0.375px;
}

.article-content pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.article-content code {
    background-color: #e5e7eb;
    padding: 0.2em 0.4em;
    border-radius: 0.375rem;
    font-size: 0.9em;
}
/* 元信息区域优化 */
.meta-info {
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.meta-info .inline-flex {
    @media (max-width: 768px) {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
}

.meta-info .font-medium {
    color: #4b5563;
    margin-right: 0.5rem;
}

/* 鼠标悬停增强 */
.meta-info .bg-gray-50:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
}

/* 移动端适配 */
@media (max-width: 640px) {
    .meta-info .inline-flex {
        width: 100%;
        justify-content: space-between;
    }
    
    .meta-info .font-medium {
        min-width: 5rem;
    }
}