/* style.css - 南京林业大学性格测试系统 完整美化版 */
@import url('https://fonts.googleapis.cn/css2?family=Inter:opsz,wght@14..32,300;400;500;600;700&display=swap');

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

body {
    background: linear-gradient(135deg, #e2ecd9 0%, #c5ddb5 100%);
    font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #1a3a2c;
}
/* 顶栏 logo 图片样式 */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.logo-img {
    height: 36px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
@media (max-width: 680px) {
    .logo-img {
        height: 30px;
    }
}
/* 统计页面美化 */
.stats-card {
    text-align: center;
}
.stats-total {
    background: linear-gradient(135deg, #eef3e8, #e2ecd9);
    border-radius: 2rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}
.total-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1f5437;
    line-height: 1;
}
.total-label {
    font-size: 0.9rem;
    color: #5a7a4e;
    margin-top: 0.5rem;
}
.plant-stats-list {
    margin: 1.5rem 0;
    text-align: left;
}
.plant-stat-item {
    margin-bottom: 1.2rem;
}
.plant-stat-header {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}
.plant-stat-icon {
    font-size: 1.2rem;
}
.plant-stat-name {
    font-weight: 700;
    min-width: 70px;
}
.plant-stat-count {
    font-weight: 600;
    color: #2d4535;
    margin-left: auto;
}
.plant-stat-percent {
    font-size: 0.85rem;
    color: #6b8c6e;
    font-weight: 500;
}
.progress-bar-stats {
    background: #e2e8dc;
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    width: 100%;
}
.progress-fill-stats {
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
}
.stats-action {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
@media (max-width: 550px) {
    .plant-stat-header {
        gap: 0.5rem;
    }
    .plant-stat-name {
        min-width: 55px;
        font-size: 0.9rem;
    }
    .plant-stat-count {
        font-size: 0.85rem;
    }
    .total-number {
        font-size: 2.5rem;
    }
}
/* 植物图片样式 */
.plant-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem auto;
    transition: transform 0.2s;
}
.plant-item:hover .plant-img {
    transform: scale(1.05);
}

/* 结果页面植物图片样式 */
.plant-result-img {
    width: 140px;          /* 控制图片宽度 */
    height: 140px;         /* 控制图片高度 */
    object-fit: contain;   /* 保持图片比例，不裁剪 */
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: 50%;    /* 可选：圆形图片，若需要方形可改为 1rem */
    background-color: #f5f9f0; /* 可选：背景色，防止透明图片显示异常 */
    padding: 0.5rem;       /* 可选：内边距 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.plant-result-img:hover {
    transform: scale(1.02);
}
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1.5rem;
}

/* ========= 顶栏样式 ========= */
.site-header {
    background: rgba(31, 84, 55, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
}
.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.3px;
}
.main-nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}
.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    padding: 0.4rem 0;
}
.main-nav a:hover,
.main-nav a.active {
    color: #ffecb3;
    border-bottom: 2px solid #ffecb3;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* ========= 底栏样式 ========= */
.site-footer {
    background: #1f5437;
    color: #eef3e8;
    padding: 1.5rem;
    margin-top: 2rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-info p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
}
.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.85rem;
}
.footer-links a:hover {
    text-decoration: underline;
    color: #ffecb3;
}

/* ========= Hero 区域美化 ========= */
.hero-section {
    margin-bottom: 3rem;
}
.hero-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-radius: 3rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 55px -15px rgba(0, 0, 0, 0.3);
}
/* 装饰光晕 */
.hero-glow {
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(46, 125, 70, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero-card h2 {
    font-size: 2.4rem;
    color: #1f5437;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.hero-card h2 span {
    background: linear-gradient(135deg, #2a6b42, #3c8d5e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}
/* 植物标签 */
.plant-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.2rem 0;
    position: relative;
    z-index: 1;
}
.plant-tag {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    padding: 0.4rem 1rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3e2c;
    border-left: 4px solid var(--tag-color, #2b6e3f);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.plant-tag:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.hero-card p {
    font-size: 1rem;
    color: #5a7a4e;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.btn-hero {
    background: linear-gradient(105deg, #2a6b42 0%, #1f5437 100%);
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.25s;
    box-shadow: 0 8px 18px rgba(30, 80, 40, 0.3);
    position: relative;
    z-index: 1;
}
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(30, 80, 40, 0.4);
    background: linear-gradient(105deg, #1f5a3a 0%, #16422b 100%);
}
.hero-stats {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #5a7a4e;
    background: rgba(255, 255, 240, 0.7);
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 60px;
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 1;
}
.hero-stats strong {
    font-size: 1.2rem;
    color: #2a6b42;
    font-weight: 800;
}

/* ========= 首页其他组件 ========= */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    border-radius: 2rem;
    padding: 1.8rem;
    flex: 1;
    min-width: 200px;
    text-align: center;
    transition: transform 0.2s;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: #4a6b55;
}
.plants-showcase {
    background: rgba(255, 255, 240, 0.6);
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
}
.plants-showcase h2 {
    margin-bottom: 1.5rem;
}
.plant-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}
.plant-item {
    background: white;
    border-radius: 2rem;
    padding: 1rem 1.5rem;
    width: 140px;
    text-align: center;
    border-top: 5px solid;
    transition: 0.2s;
}
.plant-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.plant-emoji {
    font-size: 2.2rem;
    display: block;
}
.plant-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}
.plant-desc {
    font-size: 0.75rem;
    color: #6b8c6e;
}

/* ========= 通用卡片样式 ========= */
.card,
.main-card,
.test-card,
.result-card,
.register-card,
.report-card,
.login-card,
.admin-header,
.admin-content,
.stats-public .card,
.contact-container .card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(2px);
    border-radius: 2.5rem;
    box-shadow: 0 25px 45px -15px rgba(30, 50, 20, 0.3), 0 0 0 1px rgba(180, 160, 120, 0.1) inset;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.3s ease;
    margin-bottom: 1.8rem;
    width: 100%;
}
.card:hover,
.main-card:hover,
.test-card:hover,
.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 55px -18px rgba(30, 50, 20, 0.4);
}
.main-card,
.result-card,
.register-card,
.report-card,
.login-card,
.contact-container .card {
    padding: 2.2rem;
}

/* 标题 */
h1,
h2,
h3 {
    color: #1f5437;
    font-weight: 700;
    letter-spacing: -0.3px;
}
h1 {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}


/* 标签 */
.plant-badges {
    margin: 1.2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.badge {
    background: #eef3e8;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2b6e3f;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.badge:hover {
    background: #e2ecd9;
    transform: scale(1.02);
}

/* ========= 按钮体系 ========= */
.btn-start,
.btn-primary,
button[type="submit"],
.btn,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(105deg, #2a6b42 0%, #1f5437 100%);
    color: white;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 5px 12px rgba(30, 80, 40, 0.2);
}
.btn-start:hover,
.btn-primary:hover,
button[type="submit"]:hover,
.btn:hover {
    background: linear-gradient(105deg, #1f5a3a 0%, #16422b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(30, 80, 40, 0.3);
}
.btn-secondary,
.btn-reset {
    background: #eef3e8;
    color: #2a6b42;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.btn-secondary:hover,
.btn-reset:hover {
    background: #e2ecd9;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    border: 2px solid #2a6b42;
    color: #2a6b42;
    box-shadow: none;
}
.btn-outline:hover {
    background: #2a6b42;
    color: white;
}
.btn-sm {
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
}
button:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}
.btn-contact {
    background: linear-gradient(105deg, #e0b354 0%, #c9992e 100%);
    color: #2c472d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-contact:hover {
    background: linear-gradient(105deg, #d4a43e 0%, #b87f1c 100%);
    color: #1d2e1d;
}

/* ========= 普通超链接（白色，默认无下划线，悬停有下划线） ========= */
a:not([class^="btn"]):not(.plant-badge):not(.badge):not(.admin-nav a) {
    color: white;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}
a:not([class^="btn"]):not(.plant-badge):not(.badge):not(.admin-nav a):hover {
    color: #ffecb3;
    text-decoration: none;
    text-underline-offset: 4px;
}
.link-btn {
    background: none;
    border: none;
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
}
.link-btn:hover {
    color: #ffecb3;
    text-decoration: underline;
}

/* 侧边栏广告内的链接 */
.ad-sidebar a {
    color: white;
    text-decoration: none;
}
.ad-sidebar a:hover {
    color: #ffecb3;
    text-decoration: underline;
}

/* ========= 测试页面进度条 ========= */
.progress-section {
    background: #1f5437;
    padding: 1rem 2rem;
    color: white;
}
.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
}
.progress-bar {
    background: #3c7255;
    height: 8px;
    border-radius: 20px;
    overflow: hidden;
}
.progress-fill {
    background: linear-gradient(90deg, #ffe2a4, #ffcf7a);
    width: 0%;
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* 测试卡片 */
.test-card {
    padding: 0 !important;
    overflow: hidden;
}
.question-card {
    padding: 2rem 2rem 2.2rem;
}
.question-type {
    display: inline-block;
    background: #eef3e8;
    padding: 5px 16px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2b6e3f;
    margin-bottom: 1rem;
}
.question-text {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0.8rem 0 2rem;
    line-height: 1.35;
    color: #1a402f;
}
.options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 2rem;
}
.option {
    background: #ffffffdd;
    border: 1.5px solid #dee8d4;
    border-radius: 80px;
    padding: 14px 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #2d4535;
}
.option:hover {
    background: #f8fcf3;
    border-color: #b9cfaa;
    transform: translateX(8px);
}
.option.selected {
    background: linear-gradient(105deg, #e5f2de, #d9eace);
    border-color: #2a8c52;
}
.test-footer {
    text-align: center;
    margin-top: 1rem;
}
.test-footer a {
    color: white;
    text-decoration: none;
}
.test-footer a:hover {
    color: #ffecb3;
    text-decoration: underline;
}

/* ========= 结果页面 ========= */
.result-card {
    text-align: center;
}
.plant-icon {
    font-size: 5.5rem;
    filter: drop-shadow(4px 8px 15px rgba(0, 0, 0, 0.15));
    margin-bottom: 0.5rem;
}
.plant-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.25rem 0;
    letter-spacing: -0.5px;
}
.keywords {
    display: inline-block;
    background: #f2efe0;
    padding: 8px 24px;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 16px 0;
}
.description {
    text-align: left;
    background: #fefaf2;
    padding: 24px;
    border-radius: 32px;
    margin: 24px 0;
    line-height: 1.6;
    border-left: 6px solid;
}
.suggestion {
    background: #eef3e8;
    padding: 18px 24px;
    border-radius: 32px;
    font-weight: 500;
    margin: 16px 0;
    color: #2a5e41;
}
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ========= 注册/报告表单 ========= */
.register-card input,
.edit-form input,
.edit-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin: 0.5rem 0 1.2rem;
    border-radius: 60px;
    border: 1.5px solid #d4e0ca;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.2s;
}
.register-card input:focus,
.edit-form input:focus,
.edit-form textarea:focus {
    outline: none;
    border-color: #2a8c52;
    box-shadow: 0 0 0 3px rgba(42, 140, 82, 0.2);
}
.register-card button {
    width: 100%;
}
.error {
    color: #c23d2b;
    background: #ffe6e0;
    padding: 12px;
    border-radius: 60px;
    margin-bottom: 1.2rem;
    text-align: center;
}
.privacy {
    font-size: 0.75rem;
    color: #6b8c6e;
    margin-top: 1rem;
    text-align: center;
}
.report-content {
    background: #fefcf7;
    padding: 1.8rem;
    border-radius: 2rem;
    margin: 1.5rem 0;
    line-height: 1.7;
    border: 1px solid #ece3cf;
}

/* ========= 后台管理 ========= */
.admin-nav {
    background: #1f5437;
    padding: 0.9rem 1.8rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.admin-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}
.admin-nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
    color: #ffecb3;
}
.admin-content {
    padding: 2rem;
}
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: 1.2rem;
    overflow: hidden;
}
.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    background: white;
}
.data-table th {
    background: #eaf3e3;
    color: #1f5437;
    font-weight: 700;
    border-bottom: 1px solid #d0e0c4;
}
.data-table a {
    color: #2a6b42;
    text-decoration: none;
}
.data-table a:hover {
    color: #16422b;
    text-decoration: underline;
}
.stats-grid {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.stat-card {
    background: linear-gradient(115deg, #eef3e8, #e4ecd9);
    padding: 1.2rem 1.8rem;
    border-radius: 1.8rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    color: #1f5437;
}
.edit-form label {
    display: block;
    margin: 1.2rem 0 0.3rem;
    font-weight: 600;
    color: #2a5e41;
}
.edit-form input,
.edit-form textarea {
    border-radius: 28px;
}
button[type="submit"] {
    margin-top: 1.5rem;
}

/* 联系页 */
.contact-info {
    background: #fcf8ef;
    padding: 1.5rem;
    border-radius: 2rem;
    margin: 1.5rem 0;
}

/* 统计页面美化 - 官方数据报告风格 */
.stats-card {
    padding: 2rem;
}
.stats-subtitle {
    text-align: center;
    color: #6b8c6e;
    font-size: 0.85rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}
/* 双指标卡片 */
.stats-metrics {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.metric-card {
    background: linear-gradient(135deg, #f8fbf5, #eef3e8);
    border-radius: 2rem;
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.metric-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.metric-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1f5437;
    line-height: 1;
}
.metric-label {
    font-size: 0.9rem;
    color: #5a7a4e;
    margin-top: 0.5rem;
}
/* 趋势图 */
.trend-section {
    background: #fefcf5;
    border-radius: 1.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
}
.trend-section h3 {
    margin-bottom: 1rem;
    text-align: center;
}
.trend-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.trend-item {
    text-align: center;
    flex: 1;
    min-width: 40px;
}
.trend-bar {
    background: #2a6b42;
    width: 100%;
    border-radius: 10px 10px 0 0;
    transition: height 0.3s;
}
.trend-label {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    color: #5a7a4e;
}
.trend-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1f5437;
}
/* ========= 响应式适配 ========= */
@media (max-width: 680px) {
    .main-content {
        padding: 1rem;
    }
    .header-container {
        flex-wrap: wrap;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 0.8rem;
    }
    .main-nav.open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    .hero-card {
        padding: 2rem 1.2rem;
    }
    .hero-card h2 {
        font-size: 1.8rem;
    }
    .plant-tags {
        gap: 0.5rem;
    }
    .plant-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    .btn-hero {
        font-size: 1rem;
        padding: 0.7rem 1.8rem;
    }
    .features-grid {
        gap: 1rem;
    }
    .feature-card {
        padding: 1.2rem;
        min-width: 160px;
    }
    .plant-list {
        gap: 0.8rem;
    }
    .plant-item {
        width: 120px;
        padding: 0.8rem 1rem;
    }
    .main-card,
    .result-card,
    .register-card,
    .report-card,
    .login-card,
    .contact-container .card {
        padding: 1.5rem;
    }
    h1 {
        font-size: 1.7rem;
    }
    .question-text {
        font-size: 1.4rem;
    }
    .plant-name {
        font-size: 2rem;
    }
    .option {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    .btn-start,
    .btn-primary,
    button[type="submit"],
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    .admin-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    .stat-card {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    .progress-section {
        padding: 0.8rem 1.2rem;
    }
    .question-card {
        padding: 1.5rem;
    }
    .plant-icon {
        font-size: 4rem;
    }
    .keywords {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    .description,
    .suggestion {
        padding: 16px;
    }
    .action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .ad-sidebar {
        margin-top: 1rem;
        padding: 1.2rem;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-links a {
        margin: 0 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    .hero-card h2 {
        font-size: 1.5rem;
    }
    .plant-tag {
        font-size: 0.7rem;
    }
    .option {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .question-text {
        font-size: 1.2rem;
    }
    .plant-name {
        font-size: 1.6rem;
    }
}