/* style.css - 康为医疗科技网站完整样式 */
* {
    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: #222;
    background: #f8fafc;
    transition: background 0.3s, color 0.3s;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background: #0056a7;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}
header nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background .3s, transform .3s;
}
header nav a:hover {
    background: #003d7a;
    transform: translateY(-2px);
}
.menu-toggle {
    display: none;
    background: 0;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.banner {
    background: linear-gradient(135deg, #0056a7, #003d7a, #1a3a5c);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: bannerGlow 10s ease-in-out infinite;
}
@keyframes bannerGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}
.banner h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}
.banner .btn {
    display: inline-block;
    background: #ff6f00;
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: background .3s, transform .3s, box-shadow .3s;
    position: relative;
    z-index: 1;
}
.banner .btn:hover {
    background: #e65c00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,111,0,0.4);
}
.section {
    padding: 80px 0;
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0056a7;
    border-bottom: 3px solid #0056a7;
    display: inline-block;
    padding-bottom: 5px;
}
.section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #003d7a;
}
.section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #555;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform .4s, box-shadow .4s, background .3s;
    border: 1px solid rgba(255,255,255,0.3);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.9);
}
.card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    fill: #0056a7;
}
.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.card p {
    font-size: .95rem;
    color: #555;
}
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 18px 0;
    transition: background 0.3s;
}
.faq-item:hover {
    background: rgba(0,86,167,0.03);
}
.faq-question {
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    transition: transform .3s, color 0.3s;
}
.faq-item.active .faq-question::after {
    content: "-";
    transform: rotate(180deg);
    color: #ff6f00;
}
.faq-answer {
    padding-top: 10px;
    display: none;
    color: #555;
    line-height: 1.8;
}
.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.howto-steps {
    list-style: none;
    counter-reset: step;
}
.howto-steps li {
    counter-increment: step;
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
}
.howto-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background: #0056a7;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,86,167,0.3);
}
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.article-item {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform .3s, box-shadow .3s;
    border: 1px solid rgba(255,255,255,0.2);
}
.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.article-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.article-item .meta {
    font-size: .85rem;
    color: #888;
    margin-bottom: 10px;
}
.article-item p {
    font-size: .9rem;
    color: #555;
}
.article-item a {
    color: #0056a7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.article-item a:hover {
    text-decoration: underline;
    color: #ff6f00;
}
footer {
    background: #003d7a;
    color: #fff;
    padding: 50px 0;
    font-size: .9rem;
}
footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
footer h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff6f00;
    display: inline-block;
    padding-bottom: 5px;
}
footer a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color .3s, transform .3s;
}
footer a:hover {
    color: #fff;
    transform: translateX(5px);
}
footer p {
    margin-bottom: 5px;
}
.copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    margin-top: 20px;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0056a7;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s, transform .3s, background .3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,86,167,0.3);
}
.back-to-top.visible {
    opacity: 1;
}
.back-to-top:hover {
    transform: scale(1.1);
    background: #ff6f00;
}
.dark-mode {
    background: #1a1a2e;
    color: #eee;
}
.dark-mode .card {
    background: rgba(42,42,62,0.8);
    backdrop-filter: blur(15px);
    color: #eee;
    border-color: rgba(255,255,255,0.1);
}
.dark-mode .card:hover {
    background: rgba(42,42,62,0.95);
}
.dark-mode .article-item {
    background: rgba(42,42,62,0.8);
    backdrop-filter: blur(10px);
    color: #eee;
    border-color: rgba(255,255,255,0.1);
}
.dark-mode footer {
    background: #0f0f1a;
}
.dark-mode header {
    background: #0f0f1a;
    backdrop-filter: blur(10px);
}
.dark-mode .banner {
    background: linear-gradient(135deg, #0f0f1a, #1a1a2e, #2a2a3e);
}
.dark-mode .section h2 {
    color: #7abaff;
    border-bottom-color: #7abaff;
}
.dark-mode .section h3 {
    color: #7abaff;
}
.dark-mode .faq-answer {
    color: #ccc;
}
.dark-mode .faq-item:hover {
    background: rgba(255,255,255,0.05);
}
.dark-mode .article-item p {
    color: #ccc;
}
.dark-mode .stat-label {
    color: #ccc;
}
.search-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}
.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box input:focus {
    border-color: #0056a7;
    box-shadow: 0 0 0 3px rgba(0,86,167,0.1);
    outline: none;
}
.search-box button {
    padding: 12px 25px;
    background: #0056a7;
    color: #fff;
    border: 0;
    border-radius: 25px;
    cursor: pointer;
    transition: background .3s, transform .3s;
}
.search-box button:hover {
    background: #ff6f00;
    transform: scale(1.05);
}
@media (max-width: 768px) {
    header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    header nav.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .banner h2 {
        font-size: 1.8rem;
    }
    .banner p {
        font-size: 1rem;
    }
    .section {
        padding: 50px 0;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .article-list {
        grid-template-columns: 1fr;
    }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6f00;
}
.stat-label {
    font-size: 1rem;
    color: #555;
}