/* ========== base ========== */

    :root {
      --green-primary: #2d8c3c;
      --green-light: #4caf50;
      --green-lighter: #e8f5e9;
      --green-dark: #1b5e20;
      --gold: #d4a843;
      --gold-light: #f5e6b8;
      --brown: #795548;
      --brown-light: #efebe9;
      --orange: #ff8f00;
      --red: #e53935;
      --bg: #e8ede8;
      --card: #ffffff;
      --text-primary: #1a2e1a;
      --text-secondary: #5a6e5a;
      --text-hint: #7a8a7a;
      --shadow-sm: 0 2px 8px rgba(45, 140, 60, 0.08);
      --shadow-md: 0 4px 16px rgba(45, 140, 60, 0.12);
      --shadow-lg: 0 8px 32px rgba(45, 140, 60, 0.16);
      --radius-sm: 10px;
      --radius-md: 16px;
      --radius-lg: 24px;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
      background-color: var(--bg);
      max-width: 750px;
      margin: 0 auto;
      padding-bottom: 80px;
      color: var(--text-primary);
      -webkit-font-smoothing: antialiased;
    }

    .page {
      display: none;
      min-height: calc(100vh - 80px);
      padding-bottom: 20px;
      animation: fadeIn 0.3s ease;
    }

    .page.active {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }


/* ========== tab-bar ========== */
    .tab-bar {
      position: fixed;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 750px;
      height: 70px;
      background: rgba(255, 255, 255, 0.97);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      display: flex;
      padding: 6px 0 env(safe-area-inset-bottom, 10px);
      box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12), 0 -2px 10px rgba(0, 0, 0, 0.06);
      z-index: 10000;
      border-top: 1px solid rgba(255, 255, 255, 0.95);
    }

    .tab-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    .tab-item.active::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 24px;
      height: 3px;
      background: var(--green-primary);
      border-radius: 0 0 3px 3px;
    }

    .tab-item svg, .tab-item img {
      width: 28px;
      height: 28px;
      margin-bottom: 3px;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      fill: var(--text-hint);
      stroke: none;
    }

    .tab-item.active svg, .tab-item.active img {
      fill: var(--green-primary);
      transform: scale(1.1);
    }

    .tab-text {
      font-size: 15px;
      color: var(--text-hint);
      font-weight: 500;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      letter-spacing: 0.5px;
    }

    .tab-item.active .tab-text {
      color: var(--green-primary);
      font-weight: 700;
    }


/* ========== modal ========== */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 200;
      overflow-y: auto;
      animation: modalFadeIn 0.3s ease;
    }

    .modal.active {
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }

    @keyframes modalFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-content {
      background: var(--card);
      max-width: 750px;
      width: 100%;
      max-height: 90vh;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      overflow-y: auto;
      animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideUp {
      from { transform: translateY(100%); }
      to { transform: translateY(0); }
    }

    .modal-handle {
      width: 36px;
      height: 4px;
      background: #ddd;
      border-radius: 2px;
      margin: 10px auto;
    }

    .rent-form-header {
      text-align: center;
      padding: 28px 24px 16px;
    }

    .rent-form-icon {
      font-size: 48px;
      margin-bottom: 8px;
    }

    .rent-form-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .rent-form-land {
      font-size: 14px;
      color: var(--green-primary);
      font-weight: 600;
    }

    .rent-form-body {
      padding: 0 24px 120px;
    }

    .rent-form-item {
      margin-bottom: 16px;
    }

    .rent-form-label {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .rent-form-input {
      width: 100%;
      padding: 14px 16px;
      border: 1.5px solid rgba(45, 140, 60, 0.15);
      border-radius: 12px;
      font-size: 15px;
      outline: none;
      transition: border-color 0.3s;
      background: #fff;
      box-sizing: border-box;
    }

    .rent-form-input:focus {
      border-color: var(--green-primary);
      box-shadow: 0 0 0 3px rgba(45, 140, 60, 0.1);
    }

    .rent-form-info {
      background: #f0f4f0;
      border-radius: 12px;
      padding: 14px 16px;
      margin-bottom: 20px;
    }

    .rent-form-info-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 0;
    }

    .rent-form-info-label {
      font-size: 13px;
      color: var(--text-hint);
    }

    .rent-form-info-value {
      font-size: 14px;
      color: var(--text-primary);
      font-weight: 600;
    }

    .rent-form-btns {
      display: flex;
      gap: 12px;
      margin-top: 20px;
    }

    .rent-form-cancel {
      flex: 1;
      background: #f0f0f0;
      color: #666;
      border: none;
      padding: 16px;
      border-radius: var(--radius-md);
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }

    .rent-form-cancel:active {
      background: #e0e0e0;
    }

    .rent-form-submit {
      flex: 2;
      background: linear-gradient(135deg, var(--green-primary), var(--green-light));
      color: white;
      border: none;
      padding: 16px;
      border-radius: var(--radius-md);
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(45, 140, 60, 0.3);
      transition: all 0.3s;
    }

    .rent-form-submit:active {
      transform: scale(0.98);
    }

    .edit-avatar-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid rgba(45, 140, 60, 0.08);
      margin-bottom: 8px;
    }

    .edit-avatar-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .edit-avatar-img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(45, 140, 60, 0.12);
    }

    .edit-avatar-placeholder {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #e8f5e9;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }

    .empty {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-hint);
    }

    .empty-icon {
      font-size: 48px;
      margin-bottom: 12px;
      opacity: 0.5;
    }

    .empty-text {
      font-size: 14px;
    }

    .loading {
      text-align: center;
      padding: 40px;
      color: var(--text-hint);
      font-size: 14px;
    }


/* ========== login-page ========== */
    .login-page {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--bg);
      z-index: 300;
      max-width: 750px;
      margin: 0 auto;
      overflow-y: auto;
    }

    .login-page.active {
      display: block;
      animation: fadeIn 0.35s ease;
    }

    .login-hero {
      background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-primary) 40%, #66bb6a 100%);
      padding: 80px 24px 60px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .login-hero::before {
      content: '';
      position: absolute;
      top: -60px;
      right: -60px;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
    }

    .login-hero::after {
      content: '';
      position: absolute;
      bottom: -40px;
      left: -40px;
      width: 160px;
      height: 160px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.04);
    }

    .login-logo {
      width: 90px;
      height: 90px;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 44px;
      margin: 0 auto 20px;
      border: 2px solid rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(10px);
      position: relative;
      z-index: 1;
    }

    .login-hero-title {
      font-size: 28px;
      font-weight: 700;
      color: white;
      margin-bottom: 8px;
      position: relative;
      z-index: 1;
    }

    .login-hero-desc {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.8);
      position: relative;
      z-index: 1;
    }

    .login-body {
      padding: 32px 24px;
      margin-top: -24px;
      background: var(--bg);
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      position: relative;
      z-index: 2;
    }

    .login-wx-btn {
      width: 100%;
      height: 54px;
      background: linear-gradient(135deg, #07c160, #06ad56);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      font-size: 17px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 6px 24px rgba(7, 193, 96, 0.35);
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
    }

    .login-wx-btn:active {
      transform: scale(0.97);
    }

    .login-wx-btn::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
      animation: shimmer 2.5s infinite;
    }

    @keyframes shimmer {
      0% { left: -100%; }
      100% { left: 100%; }
    }

    .login-wx-btn svg {
      width: 26px;
      height: 26px;
      fill: white;
      flex-shrink: 0;
    }

    .login-wx-btn.loading-state {
      pointer-events: none;
      opacity: 0.8;
    }

    .login-spinner {
      width: 22px;
      height: 22px;
      border: 3px solid rgba(255,255,255,0.3);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      display: none;
    }

    .login-wx-btn.loading-state .login-spinner {
      display: block;
    }

    .login-wx-btn.loading-state .btn-content {
      display: none;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .login-divider {
      display: flex;
      align-items: center;
      margin: 28px 0;
      gap: 16px;
    }

    .login-divider::before,
    .login-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(45, 140, 60, 0.12);
    }

    .login-divider span {
      font-size: 13px;
      color: var(--text-hint);
      white-space: nowrap;
    }

    .login-phone-btn {
      width: 100%;
      height: 54px;
      background: var(--card);
      color: var(--green-primary);
      border: 2px solid var(--green-primary);
      border-radius: var(--radius-md);
      font-size: 17px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: all 0.3s;
    }

    .login-phone-btn:active {
      transform: scale(0.97);
      background: var(--green-lighter);
    }

    .login-phone-btn svg {
      width: 22px;
      height: 22px;
      fill: var(--green-primary);
    }

    .login-features {
      display: flex;
      justify-content: center;
      gap: 32px;
      margin-top: 36px;
    }

    .login-feature {
      text-align: center;
    }

    .login-feature-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      margin: 0 auto 8px;
    }

    .login-feature-icon.green { background: var(--green-lighter); }
    .login-feature-icon.gold { background: var(--gold-light); }
    .login-feature-icon.brown { background: var(--brown-light); }

    .login-feature-text {
      font-size: 12px;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .login-agreement {
      margin-top: 32px;
      text-align: center;
      font-size: 12px;
      color: var(--text-hint);
      line-height: 1.8;
    }

    .login-agreement a {
      color: var(--green-primary);
      text-decoration: none;
    }

    .login-close {
      position: absolute;
      top: 16px;
      left: 16px;
      width: 36px;
      height: 36px;
      background: rgba(255, 255, 255, 0.15);
      border: none;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
      backdrop-filter: blur(10px);
    }

    .login-close svg {
      width: 20px;
      height: 20px;
      fill: white;
    }


/* ========== phone-login-modal ========== */
    .phone-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 350;
      align-items: flex-end;
      justify-content: center;
    }

    .phone-modal.active {
      display: flex;
      animation: modalFadeIn 0.3s ease;
    }

    .phone-modal-content {
      background: var(--card);
      max-width: 750px;
      width: 100%;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      padding: 24px 24px 40px;
      animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .phone-modal-title {
      font-size: 20px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 24px;
    }

    .phone-input-group {
      margin-bottom: 16px;
    }

    .phone-input-label {
      font-size: 13px;
      color: var(--text-secondary);
      margin-bottom: 8px;
      font-weight: 500;
    }

    .phone-input-row {
      display: flex;
      gap: 12px;
    }

    .phone-input {
      flex: 1;
      height: 50px;
      border: 2px solid rgba(45, 140, 60, 0.15);
      border-radius: var(--radius-sm);
      padding: 0 16px;
      font-size: 16px;
      color: var(--text-primary);
      outline: none;
      transition: border-color 0.3s;
      font-family: inherit;
    }

    .phone-input:focus {
      border-color: var(--green-primary);
    }

    .phone-code-btn {
      height: 50px;
      padding: 0 18px;
      background: var(--green-lighter);
      color: var(--green-primary);
      border: none;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.3s;
    }

    .phone-code-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .phone-submit-btn {
      width: 100%;
      height: 54px;
      background: linear-gradient(135deg, var(--green-primary), var(--green-light));
      color: white;
      border: none;
      border-radius: var(--radius-md);
      font-size: 17px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 8px;
      box-shadow: 0 6px 20px rgba(45, 140, 60, 0.3);
      transition: all 0.3s;
    }

    .phone-submit-btn:active {
      transform: scale(0.97);
    }


/* ========== profile-not-logged-in ========== */
    .profile-not-logged {
      text-align: center;
      padding: 20px 0 10px;
    }

    .profile-login-btn {
      display: inline-block;
      background: linear-gradient(135deg, var(--green-primary), var(--green-light));
      color: white;
      border: none;
      padding: 12px 40px;
      border-radius: 30px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(45, 140, 60, 0.3);
      transition: all 0.3s;
      margin-top: 12px;
    }

    .profile-login-btn:active {
      transform: scale(0.96);
    }

    .profile-logout-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 50px;
      background: var(--card);
      color: var(--red);
      border: 1px solid rgba(229, 57, 53, 0.2);
      border-radius: var(--radius-md);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      margin-top: 8px;
    }

    .profile-logout-btn:active {
      background: #fce4ec;
    }


/* ========== news-detail-modal ========== */
    .news-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: #f0f4f0;
      z-index: 10000;
      display: flex;
      flex-direction: column;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
    }

    .news-modal.active {
      opacity: 1;
      visibility: visible;
    }

    .news-modal-content {
      width: 100%;
      max-width: 750px;
      margin: 0 auto;
      height: 100%;
      display: flex;
      flex-direction: column;
      background: #f0f4f0;
    }

    .news-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      background: #fff;
      border-bottom: 1px solid rgba(45, 140, 60, 0.08);
      position: sticky;
      top: 0;
      z-index: 1;
    }

    .news-modal-back {
      width: 36px;
      height: 36px;
      border: none;
      background: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: background 0.2s;
    }

    .news-modal-back:active {
      background: var(--green-lighter);
    }

    .news-modal-back svg {
      width: 22px;
      height: 22px;
      fill: var(--text-primary);
    }

    .news-modal-header-title {
      font-size: 17px;
      font-weight: 700;
      color: var(--text-primary);
    }

    .news-modal-body {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 0;
    }

    .news-detail-cover {
      background: linear-gradient(135deg, #1b5e20, #2d8c3c);
      padding: 32px 24px;
      text-align: center;
    }

    .news-detail-cover-icon {
      font-size: 56px;
      margin-bottom: 12px;
    }

    .news-detail-tag {
      display: inline-block;
      background: rgba(255,255,255,0.2);
      color: #fff;
      padding: 3px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 500;
      margin-bottom: 12px;
    }

    .news-detail-title {
      font-size: 22px;
      font-weight: 700;
      color: #fff;
      line-height: 1.4;
      margin-bottom: 12px;
    }

    .news-detail-meta {
      display: flex;
      justify-content: center;
      gap: 16px;
      font-size: 13px;
      color: rgba(255,255,255,0.75);
    }

    .news-detail-content {
      background: #fff;
      margin: -20px 16px 16px;
      border-radius: 16px;
      padding: 24px 20px;
      box-shadow: 0 2px 12px rgba(45, 140, 60, 0.08);
      position: relative;
      z-index: 1;
    }

    .news-detail-content h3 {
      font-size: 17px;
      font-weight: 700;
      color: #1a2e1a;
      margin: 20px 0 10px;
      padding-left: 10px;
      border-left: 3px solid #2d8c3c;
    }

    .news-detail-content h3:first-child {
      margin-top: 0;
    }

    .news-detail-content p {
      font-size: 15px;
      color: #3a4e3a;
      line-height: 1.8;
      margin: 10px 0;
    }

    .news-detail-content ul {
      padding-left: 20px;
      margin: 10px 0;
    }

    .news-detail-content li {
      font-size: 14px;
      color: #3a4e3a;
      line-height: 2;
      list-style-type: disc;
    }

    .news-detail-content strong {
      color: #2d8c3c;
    }


/* ========== nongshi-header (tool pages common) ========== */
    .nongshi-header {
      position: relative;
      overflow: hidden;
    }
    .nongshi-header-bg {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
      z-index: 0;
    }
    .nongshi-header-content {
      position: relative;
      z-index: 1;
      padding: 24px 20px 20px;
      color: #fff;
    }
    .nongshi-title {
      font-size: 24px;
      font-weight: 800;
      margin-bottom: 4px;
    }
    .nongshi-subtitle {
      font-size: 13px;
      opacity: 0.85;
    }
    .nongshi-body {
      padding: 0 16px 80px;
      background: #f5f5f5;
      min-height: calc(100vh - 120px);
    }
    .nongshi-section {
      margin-bottom: 16px;
    }
    .nongshi-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .nongshi-section-title {
      font-size: 17px;
      font-weight: 700;
      color: #333;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .nongshi-section-more {
      font-size: 13px;
      color: var(--green-primary);
      cursor: pointer;
    }
    .nongshi-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    .nongshi-grid-item {
      background: #fff;
      border-radius: 12px;
      padding: 14px 10px;
      text-align: center;
      border: 1px solid #e8e8e8;
    }
    .nongshi-grid-item-name {
      font-size: 12px;
      color: #888;
      margin-bottom: 4px;
    }
    .nongshi-grid-item-val {
      font-size: 18px;
      font-weight: 700;
      color: #333;
    }
    .nongshi-grid-item-chg {
      font-size: 12px;
      margin-top: 2px;
    }
    .nongshi-grid-item-chg.up { color: #e53935; }
    .nongshi-grid-item-chg.down { color: #2e7d32; }
    .nongshi-tabs {
      display: flex;
      gap: 0;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid #e0e0e0;
      margin-bottom: 12px;
    }
    .nongshi-tab {
      flex: 1;
      padding: 10px;
      text-align: center;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      background: #f5f5f5;
      color: #666;
      transition: all 0.2s;
    }
    .nongshi-tab.active {
      background: #e53935;
      color: #fff;
    }
    .nongshi-rank-item {
      display: flex;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #f0f0f0;
      background: #fff;
      padding-left: 12px;
      padding-right: 12px;
    }
    .nongshi-rank-item:first-child {
      border-radius: 12px 12px 0 0;
    }
    .nongshi-rank-item:last-child {
      border-radius: 0 0 12px 12px;
      border-bottom: none;
    }
    .nongshi-rank-num {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      margin-right: 10px;
      flex-shrink: 0;
      color: #fff;
    }
    .nongshi-rank-num.top1 { background: #e53935; }
    .nongshi-rank-num.top2 { background: #ef6c00; }
    .nongshi-rank-num.top3 { background: #f9a825; color: #333; }
    .nongshi-rank-num.normal { background: #e0e0e0; color: #666; }
    .nongshi-rank-info { flex: 1; }
    .nongshi-rank-name { font-size: 15px; font-weight: 600; color: #333; }
    .nongshi-rank-price { font-size: 13px; color: #888; margin-top: 2px; }
    .nongshi-rank-change { text-align: right; flex-shrink: 0; }
    .nongshi-rank-change-val { font-size: 16px; font-weight: 700; }
    .nongshi-rank-change-val.up { color: #e53935; }
    .nongshi-rank-change-val.down { color: #2e7d32; }
    .nongshi-rank-change-unit { font-size: 11px; color: #999; }
    .nongshi-empty {
      text-align: center;
      padding: 30px;
      color: #999;
      font-size: 14px;
    }

/* ========== section (home common) ========== */
    .section {
      padding: 0 16px;
      margin-bottom: 8px;
    }
    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 0 12px;
    }
    .section-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .section-title::before {
      content: '';
      width: 4px;
      height: 18px;
      background: var(--green-primary);
      border-radius: 2px;
    }
    .section-more {
      font-size: 13px;
      color: var(--text-hint);
      cursor: pointer;
    }

/* ========== back-to-tools-btn ========== */
    .back-to-tools-btn {
      position: absolute;
      top: 50%;
      right: 16px;
      transform: translateY(-50%);
      z-index: 2;
      background: rgba(255,255,255,0.25);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.4);
      border-radius: 20px;
      padding: 6px 14px;
      font-size: 12px;
      cursor: pointer;
      backdrop-filter: blur(4px);
      transition: background 0.2s;
    }
    .back-to-tools-btn:active {
      background: rgba(255,255,255,0.4);
    }

/* ========== toast ========== */
    .toast {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.8);
      background: rgba(0, 0, 0, 0.75);
      color: white;
      padding: 14px 28px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      z-index: 500;
      opacity: 0;
      transition: all 0.3s;
      pointer-events: none;
      text-align: center;
      max-width: 260px;
    }

    .toast.show {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .toast-icon {
      font-size: 32px;
      margin-bottom: 8px;
    }


/* ========== sub-pages ========== */
    .subpage {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 70px;
      background: var(--bg);
      z-index: 9998;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      animation: fadeIn 0.25s ease;
    }

    .subpage.active {
      display: block;
    }

    .subpage-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      background: #fff;
      position: sticky;
      top: 0;
      z-index: 10;
      border-bottom: 1px solid #f0f0f0;
    }

    .subpage-back {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: none;
      background: #f5f5f5;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .subpage-title {
      font-size: 17px;
      font-weight: 700;
      color: var(--text-primary);
    }

    .subpage-body {
      padding: 16px;
      padding-bottom: 300px;
    }

    /* Product Detail Subpage */
    #pdSubContent {
      padding-bottom: 300px;
    }

    .pd-sub-img {
      width: 100%;
      height: 280px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 72px;
      background: #fff;
    }

    .pd-sub-carousel {
      position: relative;
      width: calc(100% - 32px);
      margin: 12px 16px 12px;
      aspect-ratio: 1 / 1;
      overflow: hidden;
      background: #fff;
      border-radius: 16px;
    }

    .pd-sub-carousel-track {
      display: flex;
      height: 100%;
      transition: transform 0.35s ease;
    }

    .pd-sub-carousel-track img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .pd-sub-carousel-dots {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
    }

    .pd-sub-carousel-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
      transition: all 0.3s;
    }

    .pd-sub-carousel-dot.active {
      background: #fff;
      width: 20px;
      border-radius: 4px;
    }

    .pd-sub-carousel-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(0,0,0,0.25);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      cursor: pointer;
      z-index: 2;
      user-select: none;
    }

    .pd-sub-carousel-arrow:hover {
      background: rgba(0,0,0,0.45);
    }

    .pd-sub-carousel-arrow.prev {
      left: 10px;
    }

    .pd-sub-carousel-arrow.next {
      right: 10px;
    }

    .pd-sub-info {
      background: #fff;
      margin: 0 16px;
      border-radius: 16px;
      padding: 20px;
    }

    .pd-sub-name {
      font-size: 22px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .pd-sub-desc {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 16px;
      line-height: 1.6;
    }

    .pd-sub-price-row {
      display: flex;
      align-items: baseline;
      gap: 10px;
      padding-bottom: 16px;
      border-bottom: 1px solid #f0f0f0;
    }

    .pd-sub-price {
      font-size: 28px;
      font-weight: 700;
      color: #e65100;
    }

    .pd-sub-orig {
      font-size: 15px;
      color: var(--text-hint);
      text-decoration: line-through;
    }

    .pd-sub-sales {
      font-size: 13px;
      color: var(--text-hint);
      margin-left: auto;
    }

    .pd-sub-detail {
      margin-top: 16px;
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.9;
    }

    .pd-reviews-section {
      margin-top: 16px;
      padding: 16px;
      background: #fff;
      border-top: 8px solid #f5f5f5;
    }

    .pd-reviews-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .pd-reviews-title {
      font-size: 16px;
      font-weight: 700;
      color: #333;
    }

    .pd-reviews-count {
      font-size: 13px;
      color: #999;
    }

    .pd-reviews-rating {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 14px;
      font-size: 14px;
      color: #666;
    }

    .pd-reviews-rating .rating-stars {
      color: #ffb800;
      font-size: 15px;
      letter-spacing: 2px;
    }

    .pd-reviews-rating .rating-score {
      font-size: 20px;
      font-weight: 700;
      color: #ffb800;
    }

    .pd-reviews-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .pd-review-item {
      padding-bottom: 14px;
      border-bottom: 1px solid #f0f0f0;
    }

    .pd-review-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .pd-review-user {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .pd-review-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .pd-review-avatar img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
    }

    .pd-review-user-info {
      flex: 1;
    }

    .pd-review-name {
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }

    .pd-review-meta {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: #999;
      margin-top: 2px;
    }

    .pd-review-stars {
      color: #ffb800;
      font-size: 12px;
      letter-spacing: 1px;
    }

    .pd-review-content {
      font-size: 14px;
      color: #333;
      line-height: 1.7;
      margin-top: 6px;
    }

    .pd-review-images {
      display: flex;
      gap: 6px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .pd-review-images img {
      width: 72px;
      height: 72px;
      border-radius: 6px;
      object-fit: cover;
    }

    .pd-reviews-empty {
      text-align: center;
      padding: 30px 0;
      color: #999;
      font-size: 14px;
    }

    .pd-reviews-pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin-top: 16px;
      padding-top: 12px;
    }

    .pd-reviews-pagination button {
      padding: 6px 16px;
      border: 1px solid #ddd;
      border-radius: 16px;
      background: #fff;
      font-size: 13px;
      color: #666;
      cursor: pointer;
    }

    .pd-reviews-pagination button:disabled {
      color: #ccc;
      border-color: #eee;
      cursor: default;
    }

    .pd-reviews-pagination .page-info {
      font-size: 13px;
      color: #999;
    }

    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .modal-overlay.active {
      display: flex;
    }

    .review-order-modal {
      width: 90%;
      max-width: 400px;
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
      from { transform: translateY(30px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    .review-order-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px;
      font-size: 17px;
      font-weight: 700;
      color: #333;
      border-bottom: 1px solid #f0f0f0;
    }

    .review-order-modal-close {
      width: 28px;
      height: 28px;
      border: none;
      background: #f5f5f5;
      border-radius: 50%;
      font-size: 14px;
      color: #999;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .review-order-modal-body {
      padding: 16px 20px;
      max-height: 60vh;
      overflow-y: auto;
    }

    .review-order-product-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 0;
      border-bottom: 1px solid #f5f5f5;
    }

    .review-order-product-item:last-child {
      border-bottom: none;
    }

    .review-order-product-emoji {
      font-size: 28px;
      flex-shrink: 0;
    }

    .review-order-product-name {
      font-size: 14px;
      color: #333;
      flex: 1;
    }

    .review-order-form {
      margin-top: 12px;
    }

    .review-order-rating {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
      font-size: 14px;
      color: #666;
    }

    .review-star-row {
      display: flex;
      gap: 4px;
    }

    .review-star {
      font-size: 24px;
      color: #ddd;
      cursor: pointer;
      transition: color 0.2s;
    }

    .review-star.active {
      color: #ffb800;
    }

    .review-order-form textarea {
      width: 100%;
      padding: 12px;
      border: 1px solid #e0e0e0;
      border-radius: 10px;
      font-size: 14px;
      resize: none;
      outline: none;
      line-height: 1.6;
    }

    .review-order-form textarea:focus {
      border-color: #ff9800;
    }

    .review-order-char-count {
      text-align: right;
      font-size: 12px;
      color: #bbb;
      margin-top: 4px;
    }

    .review-order-modal-footer {
      display: flex;
      gap: 12px;
      padding: 12px 20px 20px;
    }

    .review-order-cancel-btn {
      flex: 1;
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: 10px;
      background: #fff;
      font-size: 15px;
      color: #666;
      cursor: pointer;
    }

    .review-order-submit-btn {
      flex: 1;
      padding: 12px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(135deg, #ff9800, #f57c00);
      font-size: 15px;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
    }

    .pd-sub-bar {
      position: fixed;
      bottom: 70px;
      background: #fff;
      padding: 12px 16px;
      padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
      display: flex;
      align-items: center;
      gap: 12px;
      border-top: 1px solid #f0f0f0;
      z-index: 10001;
      box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
      left: 0;
      right: 0;
    }

    .pd-sub-qty {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .pd-sub-qty button {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid #ddd;
      background: #fff;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .pd-sub-qty span {
      font-size: 16px;
      font-weight: 700;
      min-width: 24px;
      text-align: center;
    }

    .pd-sub-add-btn {
      flex: 1;
      padding: 12px;
      border-radius: 24px;
      background: linear-gradient(135deg, var(--green-primary), var(--green-light));
      color: #fff;
      border: none;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
    }

    /* Cart Subpage */
    .cart-sub-item {
      display: flex;
      align-items: center;
      gap: 12px;
      background: #fff;
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 10px;
    }

    .cart-sub-emoji {
      font-size: 36px;
      width: 48px;
      text-align: center;
      flex-shrink: 0;
    }

    .cart-sub-info {
      flex: 1;
      min-width: 0;
    }

    .cart-sub-name {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .cart-sub-price {
      font-size: 15px;
      color: #e65100;
      font-weight: 700;
    }

    .cart-sub-qty {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .cart-sub-qty button {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: 1px solid #ddd;
      background: #fff;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cart-sub-qty span {
      font-size: 15px;
      font-weight: 700;
      min-width: 22px;
      text-align: center;
    }

    .cart-sub-del {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #fff0f0;
      color: #e53935;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      cursor: pointer;
      flex-shrink: 0;
    }

    .cart-sub-empty {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-hint);
    }

    .cart-sub-empty-icon {
      font-size: 56px;
      margin-bottom: 16px;
    }

    .cart-sub-empty-text {
      font-size: 15px;
      margin-bottom: 20px;
    }

    .cart-sub-empty-btn {
      padding: 10px 32px;
      border-radius: 22px;
      background: var(--green-primary);
      color: #fff;
      border: none;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
    }

    .cart-sub-bar {
      position: fixed;
      bottom: 70px;
      background: #fff;
      padding: 14px 20px;
      padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid #f0f0f0;
      z-index: 10001;
      box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
      left: 0;
      right: 0;
    }

    .cart-sub-total {
      font-size: 16px;
      font-weight: 700;
    }

    .cart-sub-total span {
      color: #e65100;
      font-size: 22px;
    }

    .cart-sub-checkout {
      padding: 12px 36px;
      border-radius: 24px;
      background: linear-gradient(135deg, var(--green-primary), var(--green-light));
      color: #fff;
      border: none;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
    }

    /* Checkout Subpage */
    .checkout-sub-field {
      margin-bottom: 16px;
    }

    .checkout-sub-field label {
      display: block;
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 6px;
      font-weight: 500;
    }

    .checkout-sub-field input,
    .checkout-sub-field textarea {
      width: 100%;
      padding: 12px 16px;
      border: 1px solid #e0e0e0;
      border-radius: 12px;
      font-size: 15px;
      outline: none;
      box-sizing: border-box;
      background: #fff;
    }

    .checkout-sub-field input:focus,
    .checkout-sub-field textarea:focus {
      border-color: var(--green-primary);
    }

    .checkout-sub-addr-pick {
      background: #fff;
      border-radius: 12px;
      padding: 14px 16px;
      margin-bottom: 16px;
      cursor: pointer;
      border: 1px solid #e0e0e0;
    }

    .checkout-sub-addr-pick.selected {
      border-color: var(--green-primary);
      background: #f1f8f2;
    }

    .checkout-sub-items {
      background: #fff;
      border-radius: 12px;
      padding: 14px 16px;
      margin-bottom: 16px;
    }

    .checkout-sub-item {
      display: flex;
      justify-content: space-between;
      padding: 6px 0;
      font-size: 14px;
      color: var(--text-secondary);
    }

    .checkout-sub-bar {
      position: fixed;
      bottom: 70px;
      background: #fff;
      padding: 14px 20px;
      padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid #f0f0f0;
      z-index: 10001;
      box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
      left: 0;
      right: 0;
    }

    .checkout-sub-total {
      font-size: 16px;
      font-weight: 700;
    }

    .checkout-sub-total span {
      color: #e65100;
      font-size: 22px;
    }

    .checkout-sub-submit {
      padding: 12px 36px;
      border-radius: 24px;
      background: linear-gradient(135deg, #e65100, #ff8f00);
      color: #fff;
      border: none;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
    }

    /* Address Subpage */
    .addr-card {
      background: #fff;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 12px;
      border: 1px solid #f0f0f0;
    }

    .addr-card.default {
      border-color: var(--green-primary);
      background: #f9fdf9;
    }

    .addr-card-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .addr-card-name {
      font-size: 16px;
      font-weight: 700;
    }

    .addr-card-phone {
      font-size: 14px;
      color: var(--text-secondary);
    }

    .addr-card-tag {
      font-size: 11px;
      background: #e8f5e9;
      color: var(--green-primary);
      padding: 2px 8px;
      border-radius: 4px;
      font-weight: 500;
    }

    .addr-card-detail {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .addr-card-actions {
      display: flex;
      gap: 16px;
      margin-top: 12px;
      justify-content: flex-end;
    }

    .addr-card-action {
      font-size: 13px;
      cursor: pointer;
      font-weight: 500;
    }

    .addr-card-action.primary {
      color: var(--green-primary);
    }

    .addr-card-action.danger {
      color: #e53935;
    }

    .addr-add-btn {
      position: fixed;
      bottom: 70px;
      width: calc(100% - 32px);
      padding: 14px;
      border-radius: 24px;
      background: linear-gradient(135deg, var(--green-primary), var(--green-light));
      color: #fff;
      border: none;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      z-index: 10001;
      box-shadow: 0 4px 16px rgba(45, 140, 60, 0.3);
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
    }

    /* Add Address Subpage */
    .addr-form {
      background: #fff;
      border-radius: 16px;
      padding: 20px;
      margin: 0 16px;
    }

    .addr-form-field {
      margin-bottom: 18px;
    }

    .addr-form-field label {
      display: block;
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 8px;
      font-weight: 500;
    }

    .addr-form-field input,
    .addr-form-field textarea {
      width: 100%;
      padding: 12px 16px;
      border: 1px solid #e0e0e0;
      border-radius: 12px;
      font-size: 15px;
      outline: none;
      box-sizing: border-box;
    }

    .addr-form-field input:focus,
    .addr-form-field textarea:focus {
      border-color: var(--green-primary);
    }

    .addr-form-check {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: var(--text-secondary);
      cursor: pointer;
    }

    .addr-form-check input {
      width: 18px;
      height: 18px;
      accent-color: var(--green-primary);
    }

    .addr-form-submit {
      width: 100%;
      padding: 14px;
      border-radius: 24px;
      background: linear-gradient(135deg, var(--green-primary), var(--green-light));
      color: #fff;
      border: none;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 8px;
    }

    /* My Orders Subpage */
    .order-sub-card {
      background: #fff;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 12px;
      border: 1px solid #f0f0f0;
    }

    .order-sub-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .order-sub-no {
      font-size: 13px;
      color: var(--text-hint);
    }

    .order-sub-status {
      font-size: 14px;
      font-weight: 600;
    }

    .order-sub-items {
      border-top: 1px solid #f5f5f5;
      padding-top: 10px;
    }

    .order-sub-item {
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      color: var(--text-secondary);
      padding: 4px 0;
    }

    .order-sub-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 12px;
      padding-top: 10px;
      border-top: 1px solid #f5f5f5;
    }

    .order-sub-time {
      font-size: 12px;
      color: var(--text-hint);
    }

    .order-sub-total {
      font-size: 15px;
      font-weight: 700;
      color: #e65100;
    }

    .od-section {
      background: #fff;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 12px;
    }

    .od-section-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid #f0f0f0;
    }

    .od-status-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 4px;
    }

    .od-status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    .od-status-text {
      font-size: 16px;
      font-weight: 700;
    }

    .od-no {
      font-size: 12px;
      color: var(--text-hint);
      margin-top: 4px;
    }

    .od-product {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid #f5f5f5;
    }

    .od-product:last-child {
      border-bottom: none;
    }

    .od-product-emoji {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      background: #f5f5f5;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }

    .od-product-info {
      flex: 1;
      min-width: 0;
    }

    .od-product-name {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-primary);
    }

    .od-product-price {
      font-size: 13px;
      color: var(--text-hint);
      margin-top: 2px;
    }

    .od-product-qty {
      font-size: 14px;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .od-total-row {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 4px;
      padding-top: 10px;
      border-top: 1px solid #f0f0f0;
      margin-top: 4px;
    }

    .od-total-label {
      font-size: 14px;
      color: var(--text-secondary);
    }

    .od-total-price {
      font-size: 18px;
      font-weight: 700;
      color: #e65100;
    }

    .od-addr-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 8px;
    }

    .od-addr-row:last-child {
      margin-bottom: 0;
    }

    .od-addr-label {
      font-size: 13px;
      color: var(--text-hint);
      width: 48px;
      flex-shrink: 0;
    }

    .od-addr-value {
      font-size: 14px;
      color: var(--text-primary);
    }

    .od-info-row {
      display: flex;
      justify-content: space-between;
      padding: 6px 0;
    }

    .od-info-label {
      font-size: 13px;
      color: var(--text-hint);
    }

    .od-info-value {
      font-size: 13px;
      color: var(--text-secondary);
    }

    .ld-cover {
      width: 100%;
      height: 220px;
      background: #f0f0f0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 64px;
      overflow: hidden;
      position: relative;
      border-radius: 12px;
    }

    .ld-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .ld-info {
      background: #fff;
      border-radius: 14px;
      padding: 16px;
      margin-top: 12px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    .ld-name-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }

    .ld-name-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }

    .ld-name {
      font-size: 20px;
      font-weight: 800;
      color: var(--text-primary);
    }

    .ld-meta-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .ld-location {
      font-size: 13px;
      color: var(--text-hint);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .ld-location svg {
      width: 14px;
      height: 14px;
      fill: var(--text-hint);
    }

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

    .ld-tag {
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 600;
    }

    .ld-tag-area {
      background: #e8f5e9;
      color: #2e7d32;
    }

    .ld-tag-desc1 {
      background: #fff3e0;
      color: #e65100;
    }

    .ld-tag-desc2 {
      background: #fff3e0;
      color: #e65100;
    }

    .ld-section {
      background: #fff;
      border-radius: 14px;
      padding: 16px;
      margin-top: 12px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    .ld-section-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-secondary);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .ld-section-title svg {
      width: 16px;
      height: 16px;
    }

    .ld-farmer-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .ld-farmer-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }

    .ld-farmer-info {
      flex: 1;
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .ld-farmer-name {
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .ld-farmer-label {
      font-size: 12px;
      color: var(--text-hint);
      margin-top: 2px;
    }

    .ld-camera-box {
      width: 100%;
      aspect-ratio: 16/9;
      background: #1a1a1a;
      border-radius: 10px;
      overflow: hidden;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ld-camera-box video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .ld-camera-placeholder {
      color: #666;
      text-align: center;
    }

    .ld-camera-placeholder svg {
      width: 40px;
      height: 40px;
      fill: #555;
      margin-bottom: 8px;
    }

    .ld-camera-placeholder span {
      display: block;
      font-size: 13px;
    }

    .ld-camera-live {
      position: absolute;
      top: 10px;
      left: 10px;
      background: #e53935;
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .ld-camera-live::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #fff;
      animation: livePulse 1.5s infinite;
    }

    @keyframes livePulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    .ld-rent-btn {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, #e65100, #ff8f00);
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: opacity 0.2s;
    }

    .ld-rent-btn:active {
      opacity: 0.85;
    }

    .ld-rent-btn.rented {
      background: #bdbdbd;
      cursor: default;
    }

    .farm-grid {
      min-height: 60px;
    }

    .farm-loading, .farm-empty {
      text-align: center;
      padding: 20px;
      color: #999;
      font-size: 13px;
    }

    .farm-crop-card {
      background: #f5f5f5;
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 10px;
      transition: all 0.2s;
    }

    .farm-crop-card.mature {
      background: linear-gradient(135deg, #fff8e1, #fff3e0);
      border: 1px solid #ffe082;
    }

    .farm-crop-top {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .farm-crop-emoji {
      font-size: 28px;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }

    .farm-crop-info {
      flex: 1;
    }

    .farm-crop-name {
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }

    .farm-crop-stage {
      font-size: 11px;
      color: #888;
      margin-top: 2px;
    }

    .farm-crop-health {
      font-size: 12px;
      font-weight: 600;
    }

    .farm-crop-progress {
      position: relative;
      height: 20px;
      background: #e0e0e0;
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 8px;
    }

    .farm-crop-progress-bar {
      height: 100%;
      background: linear-gradient(90deg, #66bb6a, #43a047);
      border-radius: 10px;
      transition: width 0.5s ease;
    }

    .farm-crop-card.mature .farm-crop-progress-bar {
      background: linear-gradient(90deg, #ffa726, #ff9800);
    }

    .farm-crop-progress-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 11px;
      font-weight: 600;
      color: #333;
      text-shadow: 0 0 4px #fff;
    }

    .farm-crop-status {
      display: flex;
      gap: 6px;
      margin-bottom: 8px;
      flex-wrap: wrap;
    }

    .farm-status-badge {
      font-size: 11px;
      padding: 2px 8px;
      border-radius: 10px;
      font-weight: 500;
    }

    .farm-status-badge.weed {
      background: #e8f5e9;
      color: #2e7d32;
    }

    .farm-status-badge.pest {
      background: #fce4ec;
      color: #c62828;
    }

    .farm-status-badge.ok {
      background: #e3f2fd;
      color: #1565c0;
    }

    .farm-crop-actions {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .farm-btn {
      border: none;
      border-radius: 8px;
      padding: 5px 10px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 500;
    }

    .farm-btn:active {
      transform: scale(0.95);
    }

    .farm-btn.water {
      background: #e3f2fd;
      color: #1565c0;
    }

    .farm-btn.weed {
      background: #e8f5e9;
      color: #2e7d32;
    }

    .farm-btn.pest {
      background: #fce4ec;
      color: #c62828;
    }

    .farm-btn.harvest {
      background: linear-gradient(135deg, #ff9800, #f57c00);
      color: #fff;
      padding: 5px 16px;
    }

    .farm-btn.remove {
      background: #f5f5f5;
      color: #999;
      margin-left: auto;
    }

    .farm-plant-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: 100%;
      padding: 10px;
      border: 2px dashed #a5d6a7;
      border-radius: 12px;
      background: #f1f8e9;
      color: #2e7d32;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 8px;
      transition: all 0.2s;
    }

    .farm-plant-btn:active {
      background: #dcedc8;
    }

    .farm-plant-btn svg {
      width: 18px;
      height: 18px;
    }

    .farm-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 10000;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }

    .farm-modal-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.4);
    }

    .farm-modal-content {
      position: relative;
      background: #fff;
      border-radius: 16px 16px 0 0;
      width: 100%;
      max-width: 500px;
      max-height: 70vh;
      overflow: hidden;
      animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
      from { transform: translateY(100%); }
      to { transform: translateY(0); }
    }

    .farm-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px;
      border-bottom: 1px solid #eee;
      font-size: 16px;
      font-weight: 600;
    }

    .farm-modal-close {
      background: none;
      border: none;
      font-size: 18px;
      color: #999;
      cursor: pointer;
      padding: 4px 8px;
    }

    .farm-modal-body {
      padding: 12px 16px;
      overflow-y: auto;
      max-height: calc(70vh - 56px);
    }

    .farm-crop-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      border-radius: 12px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .farm-crop-option:active {
      background: #f5f5f5;
    }

    .farm-crop-option-emoji {
      font-size: 28px;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f1f8e9;
      border-radius: 12px;
    }

    .farm-crop-option-info {
      flex: 1;
    }

    .farm-crop-option-name {
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }

    .farm-crop-option-time {
      font-size: 11px;
      color: #888;
      margin-top: 2px;
    }

    .farm-crop-option-price {
      font-size: 14px;
      font-weight: 600;
      color: #e65100;
    }

    .ld-nav-btn {
      width: 100%;
      padding: 14px;
      border: 2px solid #2e7d32;
      border-radius: 14px;
      background: transparent;
      color: #2e7d32;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-bottom: 10px;
      transition: all 0.2s;
    }

    .ld-nav-btn:active {
      background: #e8f5e9;
    }

    .ld-nav-btn svg {
      width: 18px;
      height: 18px;
      fill: #2e7d32;
    }

    .ld-satellite-map {
      width: 100%;
      aspect-ratio: 1 / 1;
      border-radius: 10px;
      overflow: hidden;
      background: #e0e0e0;
    }

    .ld-satellite-actions {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }

    .ld-satellite-btn {
      flex: 1;
      padding: 8px;
      border: 1.5px solid #e0e0e0;
      border-radius: 8px;
      background: #fff;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .ld-satellite-btn:active {
      background: #f5f5f5;
    }
