/* 基础样式与变量 */
:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --secondary-color: #86868b;
    --background-color: #f5f7fa;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-bg-hover: rgba(255, 255, 255, 0.85);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-small: 12px;
    --radius-medium: 16px;
    --radius-large: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(245, 247, 250, 0.8) 0%, rgba(229, 232, 236, 0.4) 90%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

/* 容器样式 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 卡片样式 - 毛玻璃效果 */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-large);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    background: var(--card-bg-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

/* 精致卡片组件 */
.widget-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-medium);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin-bottom: 20px;
}

.widget-card:hover {
    background: var(--card-bg-hover);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 动效增强 */
.result {
    margin-top: 30px;
    padding: 25px;
    background-color: rgba(245, 247, 250, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.result.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

/* 添加新动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 113, 227, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
    }
}

/* 增强按钮动效 */
.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    transition: var(--transition);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus {
    outline: none;
    animation: pulse 1.5s infinite;
}

/* 优化表单元素焦点状态 */
select:focus,
input[type="number"]:focus,
input[type="text"]:focus,
input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    background-color: white;
    transition: all 0.2s ease;
}

/* 增强标签样式 */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s ease;
}

input:focus + label,
select:focus + label {
    color: var(--primary-color);
}

/* 优化选项卡样式 */
.tabs {
    display: flex;
    margin-bottom: 25px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-small);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tab {
    padding: 14px 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    flex: 1;
    text-align: center;
    border: 1px solid var(--border-color);
}

.tab:first-child {
    border-right: none;
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 表格样式优化 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 113, 227, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 113, 227, 0.5);
}

/* 标题样式 */
h1 {
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* 表单样式 */
/* 民事诉讼时效计算工具特定样式 */
.calculator-container {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.note-small {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.amount-result {
    font-weight: bold;
    color: var(--primary-color);
}

/* 其他必要的样式已在现有style.css中定义 */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* 增强结果显示样式 */
.result .fee-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.result .fee-item:last-child {
    border-bottom: none;
}

.date-result {
    color: var(--primary-color);
    font-weight: 500;
}

.amount-result {
    font-weight: bold;
    color: var(--primary-color);
}

.note-small {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

select,
input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    color: var(--text-primary);
}

select:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    height: 18px;
    width: 18px;
    accent-color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    transition: var(--transition);
    margin-top: 10px;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

/* 结果区域样式 */
.result {
    margin-top: 30px;
    padding: 30px;
    background-color: rgba(245, 247, 250, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.result.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.result h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.fee-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.fee-item:last-child {
    border-bottom: none;
}

.date-result {
    color: var(--primary-color);
    font-weight: 500;
}

.amount-result {
    font-weight: bold;
    color: var(--primary-color);
}

.property-item {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.property-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.property-header {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.split-inputs {
    display: flex;
    gap: 10px;
}

.split-inputs input {
    flex: 1;
}

/* 帮助文本和注释样式 */
.help-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    line-height: 1.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        padding: 25px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 20px 0;
    }
}

/* 在文件末尾添加 */
.warning {
    color: #e74c3c;
    font-weight: bold;
}

.shareholder-list {
    margin-bottom: 15px;
}

.shareholder-item {
    display: flex;
    margin-bottom: 10px;
}

.shareholder-item input {
    flex: 1;
    margin-right: 10px;
}

.shareholder-item button {
    width: auto;
    padding: 10px 15px;
}

.add-btn {
    margin-bottom: 20px;
}

.note-small {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
}

.tab {
    padding: 14px 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    flex: 1;
    text-align: center;
    border: 1px solid var(--border-color);
}

.tab:first-child {
    border-right: none;
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table, th, td {
    border: 1px solid var(--border-color);
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: rgba(0, 113, 227, 0.05);
    color: var(--primary-color);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.5);
}

tr:hover {
    background-color: rgba(0, 113, 227, 0.03);
    transition: var(--transition);
}

/* Apple风格表单元素样式 */
/* 文本输入框 */
input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    color: var(--text-primary);
    -webkit-appearance: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.05);
    background-color: white;
}

/* 日期选择框 */
/* Apple风格下拉选择框样式 */
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'><path fill='%230071e3' d='M6 6L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 6px;
    transition: var(--transition);
    cursor: pointer;
}

select:hover {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.2);
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    background-color: white;
}

/* 日期输入框样式优化 */
input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: var(--transition);
}

input[type="date"]:hover {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.2);
}

input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    background-color: white;
}

/* 增强下拉选择框样式 */
input[type="text"] {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    color: var(--text-primary);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    background-color: white;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* 表单元素动画效果 */
input[type="text"],
input[type="date"],
select {
    position: relative;
    overflow: hidden;
}

input[type="text"]::after,
input[type="date"]::after,
select::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

input[type="text"]:focus::after,
input[type="date"]:focus::after,
select:focus::after {
    width: 100%;
}

/* 禁用状态样式 */
input:disabled,
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.4);
}

/* 错误状态样式 */
input.error,
select.error {
    border-color: #ff3b30;
}

input.error:focus,
select.error:focus {
    border-color: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}
