/* 老虎证券风格 - 橙色主题 */
:root {
    --primary-color: #FF6B00;
    --primary-hover: #e55f00;
    --success-color: #21A036;
    --danger-color: #F53D3D;
    --warning-color: #FFB800;
    --bg-color: #fafafa;
    --border-color: #e5e5e5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --header-bg: linear-gradient(135deg, #FF6B00 0%, #FF8C00 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
}

.header {
    background: var(--header-bg);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-item {
    padding: 6px 12px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.95);
    color: #FF6B00;
    font-weight: 600;
}

.nav-item.dropdown {
    position: relative;
    cursor: pointer;
}

.nav-item .dropdown-toggle::after {
    display: inline-block;
    margin-left: 4px;
    content: "";
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-bottom: 0;
    border-left: 4px solid transparent;
    vertical-align: middle;
    opacity: 0.7;
}

.nav-menu .dropdown-menu {
    margin-top: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-menu .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
}

.nav-menu .dropdown-item.active {
    background-color: #FF6B00;
    color: white;
}

.nav-menu .dropdown-item:hover {
    background-color: #FF6B00;
    color: white;
    opacity: 0.9;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #FF6B00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.user-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.stock-info-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.stock-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 16px;
    border-right: 1px solid var(--border-color);
}

.stock-info-item:last-child { border-right: none; }

.stock-info-item .label {
    font-size: 11px;
    color: var(--text-secondary);
}

.stock-info-item .value {
    font-size: 15px;
    font-weight: 600;
}

.change-up { color: var(--danger-color); }
.change-down { color: var(--success-color); }

.main-content {
    height: calc(100vh - 60px);
    min-height: 400px;
}

body {
    overflow: auto;
}

.kline-section {
    background: #ffffff;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.period-btn {
    border: 1px solid var(--primary-color);
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.2s;
    box-shadow: none !important;
    outline: none !important;
}

.period-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.period-btn:focus,
.period-btn:active,
.period-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
    outline: none !important;
}

.kline-chart {
    height: calc(100% - 45px);
    min-height: 350px;
}

.discussion-section {
    background: #ffffff;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ai-badge {
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.discussion-content {
    background: var(--bg-color);
    border-radius: 6px;
    padding: 10px;
    overflow-y: auto;
}

.ai-message {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.message-body {
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.message-body p { margin-bottom: 6px; line-height: 1.5; font-size: 14px; }
.message-body ul { margin-left: 18px; color: var(--text-secondary); font-size: 14px; }

.user-message {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-direction: row-reverse;
}

.user-message .message-body {
    background: var(--primary-color);
    color: white;
}

.user-message .message-avatar {
    background: #666;
}

.opinion-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.opinion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.opinion-tag {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.opinion-tag[data-opinion="watch"] { background: #fff3e0; color: #e65100; }
.opinion-tag[data-opinion="build"] { background: #ffe0b2; color: #bf360c; }
.opinion-tag[data-opinion="add"] { background: #ffcc80; color: #a15500; }
.opinion-tag[data-opinion="reduce"] { background: #ffcdd2; color: #c62828; }
.opinion-tag[data-opinion="close"] { background: #ef9a9a; color: #b71c1c; }
.opinion-tag:hover { transform: scale(1.05); }
.opinion-tag.active { box-shadow: 0 2px 6px rgba(0,0,0,0.2); }

.action-bar {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
}

.btn-icon { margin-right: 4px; }

.dropdown-menu {
    margin-top: 8px;
}
.dropdown-item {
    font-size: 14px;
    padding: 8px 16px;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 107, 0, 0.1);
    color: #e55f00;
}
.dropdown-item:active {
    background: #FF6B00;
    color: white;
}
#searchBtn {
    border: 1px solid white !important;
}

body .btn-primary,
html .btn-primary {
    background: #FF6B00 !important;
    border-color: #FF6B00 !important;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.4) !important;
}
body .btn-primary:hover,
html .btn-primary:hover {
    background: #e55f00 !important;
    border-color: #e55f00 !important;
    box-shadow: 0 3px 8px rgba(255, 107, 0, 0.5) !important;
}
body .btn-primary:active,
html .btn-primary:active,
body .btn-primary:focus,
html .btn-primary:focus {
    background: #e55f00 !important;
    border-color: #e55f00 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.3) !important;
}
.btn-outline-primary {
    color: #FF6B00;
    border-color: #FF6B00;
}
.btn-outline-primary:hover {
    background: #FF6B00;
    border-color: #FF6B00;
    color: white;
}
