/* Basic Reset & Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 0.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header Styles */
header {
    background-color: #fff;
    color: #333;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #5cb85c;
}

footer p{
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
    /* filter: drop-shadow(2px 2px 2px #aaa); Example of a subtle effect */
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #5cb85c;
    font-weight: bold; /* Font property */
}

.search-bar {
    display: flex;
    flex-grow: 0.5; /* Allows search bar to take available space */
    max-width: 400px; /* Max width for search bar */
}

.search-bar input[type="search"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    flex-grow: 1;
    font-size: 0.9rem; /* Font property */
}

.search-bar button {
    padding: 0.5rem 1rem;
    background-color: #5cb85c;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease; /* Transition for button */
}

.search-bar button:hover {
    background-color: #4cae4c;
}

.auth-links a, .auth-links-simple a {
    color: #5cb85c;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 600; /* Font property */
}

.auth-links a:hover, .auth-links-simple a:hover {
    text-decoration: underline;
}

/* Main Navigation Styles */
.main-nav {
    background-color: #333;
    padding: 0.5rem 0; /* Vertical padding */
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly; 
}

.main-nav ul li {
    position: relative; /* For submenu positioning */
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem; /* Increased padding for richer feel */
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    font-size: 1rem; /* Font property */
    text-transform: uppercase; /* Text transformation */
    letter-spacing: 0.5px; /* Text property */
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: #5cb85c;
    color: #fff;
}

/* Submenu Styles (Secondary Navigation) */
.main-nav ul .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444; /* Slightly different background for submenu */
    min-width: 200px; /* Richer width */
    z-index: 1000;
    padding: 0; /* Remove padding from ul */
    border-top: 3px solid #5cb85c; /* Accent border */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Box shadow for depth */
}

.main-nav ul li:hover > .submenu { /* Display on hover of parent li */
    display: block;
}

.main-nav ul .submenu li {
    width: 100%; /* Full width list items */
}

.main-nav ul .submenu li a {
    padding: 0.8rem 1.2rem; /* Padding for submenu items */
    color: #eee; /* Lighter text color for submenu */
    font-size: 0.9rem; /* Font property */
    text-transform: none; /* Normal text case */
    border-bottom: 1px solid #555; /* Separator */
}

.main-nav ul .submenu li:last-child a {
    border-bottom: none; /* No border for the last item */
}

.main-nav ul .submenu li a:hover {
    background-color: #5cb85c;
    color: #fff;
}

/* 1. 主要内容区域布局 (与其他子页面保持一致) */
.subpage-main {
    max-width: 900px; /* 可以稍微宽一点以容纳卡片 */
    margin: 2rem auto;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subpage-main h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #343a40;
}

.subpage-main > p {
    text-align: center;
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
}

/* 2. 计划卡片 (.plan-card) 的详细样式 */
.plan-card {
    background-color: #f8f9fa; /* 卡片使用浅灰色背景 */
    width: 90%;
    max-width: 700px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem; /* 卡片之间的间距 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px); /* 鼠标悬停时轻微上浮 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.plan-card h3 {
    color: #5cb85c; /* 标题使用主题绿色 */
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.75rem;
}

.plan-card p {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.plan-card p strong {
    display: inline-block;
    width: 80px; /* 固定标签宽度，让冒号对齐 */
    color: #343a40;
    margin-right: 1rem;
}

/* 3. 卡片中的按钮容器和按钮样式 */
.plan-card-actions {
    margin-top: 1.5rem;
    display: flex; /* 使用Flexbox布局 */
    gap: 0.75rem; /* 按钮之间的间距 */
    justify-content: center;
}

/* 通用按钮样式 (如果style.css中没有，可以在此定义) */
.btn {
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid transparent;
}

/* 次要按钮 (灰色) */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* 第三级按钮 (黄色/橙色) */
.btn-tertiary {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    color: white;
}
.btn-tertiary:hover {
    background-color: #ec971f;
    border-color: #e38d13;
}

/* 4. 页面底部的主要操作按钮 */
.main-action-btn-container {
    text-align: center; /* 容器居中 */
    margin-top: 2.5rem;
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

/* 主要按钮 (绿色) */
.btn-primary {
    background-color: #5cb85c;
    border-color: #5cb85c;
    color: white;
    font-size: 1.1rem;
    padding: 0.8rem 2rem; /* 更大的内边距 */
}
.btn-primary:hover {
    background-color: #4cae4c;
    border-color: #45a245;
}